diff options
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x509.h | 2 | ||||
-rw-r--r-- | crypto/x509/x_all.c | 12 |
2 files changed, 14 insertions, 0 deletions
diff --git a/crypto/x509/x509.h b/crypto/x509/x509.h index d2ad77815e..a0aaad8366 100644 --- a/crypto/x509/x509.h +++ b/crypto/x509/x509.h @@ -660,6 +660,8 @@ int X509_CRL_sign(X509_CRL *x, EVP_PKEY *pkey, const EVP_MD *md); int NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md); int X509_digest(X509 *data,const EVP_MD *type,unsigned char *md,unsigned int *len); +int X509_CRL_digest(X509_CRL *data,const EVP_MD *type,unsigned char *md,unsigned int *len); +int X509_REQ_digest(X509_REQ *data,const EVP_MD *type,unsigned char *md,unsigned int *len); int X509_NAME_digest(X509_NAME *data,const EVP_MD *type, unsigned char *md,unsigned int *len); #endif diff --git a/crypto/x509/x_all.c b/crypto/x509/x_all.c index d2bf3c8e1c..b67ca243dc 100644 --- a/crypto/x509/x_all.c +++ b/crypto/x509/x_all.c @@ -417,6 +417,18 @@ int X509_digest(X509 *data, const EVP_MD *type, unsigned char *md, return(ASN1_digest((int (*)())i2d_X509,type,(char *)data,md,len)); } +int X509_CRL_digest(X509_CRL *data, const EVP_MD *type, unsigned char *md, + unsigned int *len) + { + return(ASN1_digest((int (*)())i2d_X509_CRL,type,(char *)data,md,len)); + } + +int X509_REQ_digest(X509_REQ *data, const EVP_MD *type, unsigned char *md, + unsigned int *len) + { + return(ASN1_digest((int (*)())i2d_X509_REQ,type,(char *)data,md,len)); + } + int X509_NAME_digest(X509_NAME *data, const EVP_MD *type, unsigned char *md, unsigned int *len) { |