diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-07-24 12:39:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-07-24 12:39:22 +0000 |
commit | edc540211c4852c57c01743a068aecc0e0a97b5c (patch) | |
tree | af526d91c0c1e04d4e3f46cf36c238c29d4e920e /crypto/x509/x509_cmp.c | |
parent | 2eed3a3cc87be91ee56a9961abcee5ea43901e56 (diff) |
Cache some CRL related extensions.
Diffstat (limited to 'crypto/x509/x509_cmp.c')
-rw-r--r-- | crypto/x509/x509_cmp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crypto/x509/x509_cmp.c b/crypto/x509/x509_cmp.c index 4f157ba807..180dedc7fa 100644 --- a/crypto/x509/x509_cmp.c +++ b/crypto/x509/x509_cmp.c @@ -116,6 +116,13 @@ int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b) return(X509_NAME_cmp(a->crl->issuer,b->crl->issuer)); } +#ifndef OPENSSL_NO_SHA +int X509_CRL_match(const X509_CRL *a, const X509_CRL *b) + { + return memcmp(a->sha1_hash, b->sha1_hash, 20); + } +#endif + X509_NAME *X509_get_issuer_name(X509 *a) { return(a->cert_info->issuer); |