Retain compatibility of EVP_DigestInit() and EVP_DigestFinal()
[openssl.git] / crypto / asn1 / a_digest.c
index 3243beadd20077e4b04154d9b84a2a09d16ca5be..4931e222a05e30c0f47e530f18b05bbe29657049 100644 (file)
@@ -82,7 +82,7 @@ int ASN1_digest(int (*i2d)(), const EVP_MD *type, char *data,
        p=str;
        i2d(data,&p);
 
-       EVP_Digest(str, i, md, len, type);
+       EVP_Digest(str, i, md, len, type, NULL);
        OPENSSL_free(str);
        return(1);
        }
@@ -99,7 +99,7 @@ int ASN1_item_digest(const ASN1_ITEM *it, const EVP_MD *type, void *asn,
        i=ASN1_item_i2d(asn,&str, it);
        if (!str) return(0);
 
-       EVP_Digest(str, i, md, len, type);
+       EVP_Digest(str, i, md, len, type, NULL);
        OPENSSL_free(str);
        return(1);
        }