summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-08 20:25:03 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-02-08 20:25:03 +0000
commit3f08429200ccfcab06ef151d5ebd5c57431cf284 (patch)
tree30f2677f698a1fe972db39fb834b6bdc40d3b7d8 /includes
parent00aef08f3f6446d82dcf0a884ab56e2146b36e82 (diff)
downloadgnutls-3f08429200ccfcab06ef151d5ebd5c57431cf284.tar.gz
Certificate revocation support is almost complete.
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/x509.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h
index b9e94897c8..64bad19450 100644
--- a/includes/gnutls/x509.h
+++ b/includes/gnutls/x509.h
@@ -83,10 +83,10 @@ int gnutls_x509_certificate_get_key_usage( gnutls_x509_certificate cert, unsigne
*/
#define GNUTLS_KEY_DIGITAL_SIGNATURE 256
#define GNUTLS_KEY_NON_REPUDIATION 128
-#define GNUTLS_KEY_GNUTLS_KEY_ENCIPHERMENT 64
+#define GNUTLS_KEY_KEY_ENCIPHERMENT 64
#define GNUTLS_KEY_DATA_ENCIPHERMENT 32
-#define GNUTLS_KEY_GNUTLS_KEY_AGREEMENT 16
-#define GNUTLS_KEY_GNUTLS_KEY_CERT_SIGN 8
+#define GNUTLS_KEY_KEY_AGREEMENT 16
+#define GNUTLS_KEY_KEY_CERT_SIGN 8
#define GNUTLS_KEY_CRL_SIGN 4
#define GNUTLS_KEY_ENCIPHER_ONLY 2
#define GNUTLS_KEY_DECIPHER_ONLY 1
@@ -137,6 +137,8 @@ int gnutls_x509_crl_get_certificate_count(gnutls_x509_crl crl);
int gnutls_x509_crl_get_certificate(gnutls_x509_crl crl, int index, unsigned char* serial,
int* serial_size, time_t* time);
+int gnutls_x509_crl_check_issuer( gnutls_x509_crl crl,
+ gnutls_x509_certificate issuer);
/* PKCS7 structures handling
*/
@@ -166,7 +168,7 @@ typedef enum gnutls_certificate_verify_flags {
*/
} gnutls_certificate_verify_flags;
-int gnutls_x509_certificate_is_issuer( gnutls_x509_certificate cert,
+int gnutls_x509_certificate_check_issuer( gnutls_x509_certificate cert,
gnutls_x509_certificate issuer);
int gnutls_x509_certificate_list_verify( gnutls_x509_certificate* cert_list, int cert_list_length,
@@ -181,6 +183,10 @@ int gnutls_x509_crl_verify( gnutls_x509_crl crl,
gnutls_x509_certificate *CA_list, int CA_list_length,
unsigned int flags, unsigned int *verify);
+int gnutls_x509_certificate_check_revocation(gnutls_x509_certificate cert,
+ gnutls_x509_crl * crl_list,
+ int crl_list_length);
+
#ifdef __cplusplus
}