diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-05 16:46:32 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-03-05 19:48:48 +0100 |
commit | b71abe5d67d9812bc49d667cacb0e1f0267ccee5 (patch) | |
tree | 42696fd8613ecf5db242f27efb34bcea795aeb06 /lib/x509/common.h | |
parent | 291a467dbf4dd7576f899470c338bdd1bb483f02 (diff) | |
download | gnutls-b71abe5d67d9812bc49d667cacb0e1f0267ccee5.tar.gz |
Several optimizations on certificate comparisons including DN. This speeds up CA certificate loading, and certificate verification.
Diffstat (limited to 'lib/x509/common.h')
-rw-r--r-- | lib/x509/common.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/x509/common.h b/lib/x509/common.h index 5aa5c8fa1d..ebffe489d7 100644 --- a/lib/x509/common.h +++ b/lib/x509/common.h @@ -162,7 +162,11 @@ void _asnstr_append_name (char *name, size_t name_size, const char *part1, const char *part2); int -check_if_same_cert (gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2); +_gnutls_x509_get_raw_dn2 (ASN1_TYPE c2, gnutls_datum_t* raw, + const char *whom, gnutls_datum_t * dn); + +int +_gnutls_check_if_same_cert (gnutls_x509_crt_t cert1, gnutls_x509_crt_t cert2); time_t _gnutls_x509_generalTime2gtime (const char *ttime); |