aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_digest.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2000-12-28 22:24:50 +0000
committerDr. Stephen Henson <steve@openssl.org>2000-12-28 22:24:50 +0000
commit73e92de57759ea1fadbc7a9d08e02b99a752d688 (patch)
treed257d51ef0eb3c2ab061def17565209dc4312999 /crypto/asn1/a_digest.c
parent09ab755c555a96df23b78fb188578b2fba5faae2 (diff)
downloadopenssl-73e92de57759ea1fadbc7a9d08e02b99a752d688.tar.gz
Add NO_ASN1_OLD to remove some old style functions:
currently OpenSSL itself wont compile with this set because some old style stuff remains. Change old functions X509_sign(), X509_verify() etc to use new item based functions. Replace OCSP function declarations with DECLARE macros.
Diffstat (limited to 'crypto/asn1/a_digest.c')
-rw-r--r--crypto/asn1/a_digest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/asn1/a_digest.c b/crypto/asn1/a_digest.c
index fb4686fdbd..6c12249d2c 100644
--- a/crypto/asn1/a_digest.c
+++ b/crypto/asn1/a_digest.c
@@ -69,6 +69,8 @@
#include <openssl/buffer.h>
#include <openssl/x509.h>
+#ifndef NO_ASN1_OLD
+
int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data,
unsigned char *md, unsigned int *len)
{
@@ -88,6 +90,8 @@ int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data,
return(1);
}
+#endif
+
int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *asn,
unsigned char *md, unsigned int *len)