Adapt cipher implementations to opaque EVP_CIPHER_CTX
[oweals/openssl.git] / crypto / evp / bio_md.c
index 381ca599a74560a724af1b386b44db3d09e54f3f..24c7dc3bea391f0024b3889bd9d2ff321ca4c147 100644 (file)
@@ -100,7 +100,7 @@ static int md_new(BIO *bi)
 {
     EVP_MD_CTX *ctx;
 
-    ctx = EVP_MD_CTX_create();
+    ctx = EVP_MD_CTX_new();
     if (ctx == NULL)
         return (0);
 
@@ -114,7 +114,7 @@ static int md_free(BIO *a)
 {
     if (a == NULL)
         return (0);
-    EVP_MD_CTX_destroy(a->ptr);
+    EVP_MD_CTX_free(a->ptr);
     a->ptr = NULL;
     a->init = 0;
     a->flags = 0;