2006-06-16 13:49:27 +02:00
|
|
|
/* dns-cert.h - DNS CERT definition
|
|
|
|
* Copyright (C) 2006 Free Software Foundation, Inc.
|
|
|
|
*
|
|
|
|
* This file is part of GnuPG.
|
|
|
|
*
|
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code
between GnuPG and related projects (like GPGME and Libassuan). This
is good for interoperability and to reduces bugs.
* common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
* common/b64enc.c, common/convert.c, common/dns-cert.c
* common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
* common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
* common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
* common/helpfile.c, common/homedir.c, common/http.c, common/http.h
* common/i18n.c, common/init.c, common/init.h, common/iobuf.c
* common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
* common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
* common/percent.c, common/pka.c, common/pka.h, common/session-env.c
* common/session-env.h, common/sexp-parse.h, common/sexputil.c
* common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
* common/ssh-utils.h, common/sysutils.c, common/sysutils.h
* common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
* common/userids.c, common/userids.h, common/xasprintf.c: Change
license to LGPLv3+/GPLv2+/
2012-04-20 15:43:06 +02:00
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of either
|
2006-06-16 13:49:27 +02:00
|
|
|
*
|
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code
between GnuPG and related projects (like GPGME and Libassuan). This
is good for interoperability and to reduces bugs.
* common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
* common/b64enc.c, common/convert.c, common/dns-cert.c
* common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
* common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
* common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
* common/helpfile.c, common/homedir.c, common/http.c, common/http.h
* common/i18n.c, common/init.c, common/init.h, common/iobuf.c
* common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
* common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
* common/percent.c, common/pka.c, common/pka.h, common/session-env.c
* common/session-env.h, common/sexp-parse.h, common/sexputil.c
* common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
* common/ssh-utils.h, common/sysutils.c, common/sysutils.h
* common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
* common/userids.c, common/userids.h, common/xasprintf.c: Change
license to LGPLv3+/GPLv2+/
2012-04-20 15:43:06 +02:00
|
|
|
* - the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or
|
|
|
|
*
|
|
|
|
* - the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or both in parallel, as here.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
2006-06-16 13:49:27 +02:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2007-07-04 21:49:40 +02:00
|
|
|
* along with this program; if not, see <http://www.gnu.org/licenses/>.
|
2006-06-16 13:49:27 +02:00
|
|
|
*/
|
2015-04-23 15:42:56 +02:00
|
|
|
#ifndef GNUPG_DIRMNGR_DNS_CERT_H
|
|
|
|
#define GNUPG_DIRMNGR_DNS_CERT_H
|
2006-06-16 13:49:27 +02:00
|
|
|
|
2015-02-25 12:03:21 +01:00
|
|
|
|
|
|
|
#define DNS_CERTTYPE_ANY 0 /* Internal catch all type. */
|
|
|
|
/* Certificate types according to RFC-4398: */
|
|
|
|
#define DNS_CERTTYPE_PKIX 1 /* X.509 as per PKIX. */
|
|
|
|
#define DNS_CERTTYPE_SPKI 2 /* SPKI certificate. */
|
|
|
|
#define DNS_CERTTYPE_PGP 3 /* OpenPGP packet. */
|
|
|
|
#define DNS_CERTTYPE_IPKIX 4 /* The URL of an X.509 data object. */
|
|
|
|
#define DNS_CERTTYPE_ISPKI 5 /* The URL of an SPKI certificate. */
|
|
|
|
#define DNS_CERTTYPE_IPGP 6 /* The fingerprint
|
|
|
|
and URL of an OpenPGP packet. */
|
|
|
|
#define DNS_CERTTYPE_ACPKIX 7 /* Attribute Certificate. */
|
|
|
|
#define DNS_CERTTYPE_IACPKIX 8 /* The URL of an Attribute Certificate. */
|
|
|
|
#define DNS_CERTTYPE_URI 253 /* URI private. */
|
|
|
|
#define DNS_CERTTYPE_OID 254 /* OID private. */
|
2015-10-06 19:57:00 +02:00
|
|
|
/* Hacks for our implementation. */
|
|
|
|
#define DNS_CERTTYPE_RRBASE 1024 /* Base of special constants. */
|
|
|
|
#define DNS_CERTTYPE_RR61 (DNS_CERTTYPE_RRBASE + 61)
|
2015-02-25 12:03:21 +01:00
|
|
|
|
|
|
|
gpg_error_t get_dns_cert (const char *name, int want_certtype,
|
2015-04-23 15:42:56 +02:00
|
|
|
void **r_key, size_t *r_keylen,
|
2012-02-07 10:15:57 +01:00
|
|
|
unsigned char **r_fpr, size_t *r_fprlen,
|
|
|
|
char **r_url);
|
2011-11-30 17:14:08 +01:00
|
|
|
|
2006-06-16 13:49:27 +02:00
|
|
|
|
|
|
|
|
2015-04-23 15:42:56 +02:00
|
|
|
#endif /*GNUPG_DIRMNGR_DNS_CERT_H*/
|