1 /* dns-cert.h - DNS CERT definition
2 * Copyright (C) 2006 Free Software Foundation, Inc.
4 * This file is part of GnuPG.
6 * This file is free software; you can redistribute it and/or modify
7 * it under the terms of either
9 * - the GNU Lesser General Public License as published by the Free
10 * Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
15 * - the GNU General Public License as published by the Free
16 * Software Foundation; either version 2 of the License, or (at
17 * your option) any later version.
19 * or both in parallel, as here.
21 * This file is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, see <http://www.gnu.org/licenses/>.
29 #ifndef GNUPG_DIRMNGR_DNS_CERT_H
30 #define GNUPG_DIRMNGR_DNS_CERT_H
33 #define DNS_CERTTYPE_ANY 0 /* Internal catch all type. */
34 /* Certificate types according to RFC-4398: */
35 #define DNS_CERTTYPE_PKIX 1 /* X.509 as per PKIX. */
36 #define DNS_CERTTYPE_SPKI 2 /* SPKI certificate. */
37 #define DNS_CERTTYPE_PGP 3 /* OpenPGP packet. */
38 #define DNS_CERTTYPE_IPKIX 4 /* The URL of an X.509 data object. */
39 #define DNS_CERTTYPE_ISPKI 5 /* The URL of an SPKI certificate. */
40 #define DNS_CERTTYPE_IPGP 6 /* The fingerprint
41 and URL of an OpenPGP packet. */
42 #define DNS_CERTTYPE_ACPKIX 7 /* Attribute Certificate. */
43 #define DNS_CERTTYPE_IACPKIX 8 /* The URL of an Attribute Certificate. */
44 #define DNS_CERTTYPE_URI 253 /* URI private. */
45 #define DNS_CERTTYPE_OID 254 /* OID private. */
48 gpg_error_t get_dns_cert (const char *name, int want_certtype,
49 void **r_key, size_t *r_keylen,
50 unsigned char **r_fpr, size_t *r_fprlen,
55 #endif /*GNUPG_DIRMNGR_DNS_CERT_H*/