aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-05-18 00:33:00 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-05-18 00:33:00 +0000
commit439df5087f012e65b80c13ade8953778cc0b4704 (patch)
treeed0aa5c1d53f8b9b24b7c3923624a64067d68c7f /crypto/x509
parent0d3b0afe9e59962f92b0cc6c63fc65a8e8dbc0de (diff)
downloadopenssl-439df5087f012e65b80c13ade8953778cc0b4704.tar.gz
Fix c_rehash script, add -fingerprint option to crl.
Diffstat (limited to 'crypto/x509')
-rw-r--r--crypto/x509/x509.h2
-rw-r--r--crypto/x509/x_all.c12
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)
{