diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-05 20:20:42 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-05 20:20:42 +0000 |
commit | d1f89de298b3309c2258ffb78fc5ed79b10da0fa (patch) | |
tree | 6ec689bbc72e9969dcbd5469b30bcafda2cd1ebe /includes/gnutls | |
parent | 64b75ce57e115c0af3c34673c8b8eaf832941278 (diff) | |
download | gnutls-d1f89de298b3309c2258ffb78fc5ed79b10da0fa.tar.gz |
Added preliminary CRL support. This will be under the new X.509 API. Other x509 functions will be updated later.
Diffstat (limited to 'includes/gnutls')
-rw-r--r-- | includes/gnutls/Makefile.am | 2 | ||||
-rw-r--r-- | includes/gnutls/x509.h | 50 |
2 files changed, 51 insertions, 1 deletions
diff --git a/includes/gnutls/Makefile.am b/includes/gnutls/Makefile.am index 6d311c483c..2b7d59d810 100644 --- a/includes/gnutls/Makefile.am +++ b/includes/gnutls/Makefile.am @@ -1 +1 @@ -EXTRA_DIST = extra.h openssl.h gnutls.h compat4.h +EXTRA_DIST = extra.h openssl.h gnutls.h compat4.h x509.h diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h new file mode 100644 index 0000000000..ab9a1fc973 --- /dev/null +++ b/includes/gnutls/x509.h @@ -0,0 +1,50 @@ +/* + * Copyright (C) 2003 Nikos Mavroyanopoulos + * + * This file is part of GNUTLS. + * + * The GNUTLS library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + */ + +/* This file contains the types and prototypes for the X.509 + * certificate and CRL parsing functions. + */ + +#ifndef GNUTLS_X509_H +# define GNUTLS_X509_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <gnutls/gnutls.h> + +struct gnutls_crl_int; +typedef struct gnutls_crl_int* gnutls_crl; + +int gnutls_x509_crl_init(gnutls_crl * crl); +void gnutls_x509_crl_deinit(gnutls_crl crl); + +int gnutls_x509_crl_import_der(const gnutls_datum * der, gnutls_crl crl); + +int gnutls_x509_crl_get_issuer_dn_string(const gnutls_crl crl, + char *buf, unsigned int sizeof_buf); + +#ifdef __cplusplus +} +#endif +#endif /* GNUTLS_X509_H */ + |