Add NO_ASN1_OLD to remove some old style functions:
[openssl.git] / crypto / asn1 / a_digest.c
index fb4686fdbd17c4dfcb7bd93cadb2e377108df8bf..6c12249d2cefb9f4c20e9de4083fe1eac0608846 100644 (file)
@@ -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)