X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=crypto%2Fevp%2Fbio_md.c;h=24c7dc3bea391f0024b3889bd9d2ff321ca4c147;hb=936166aff21dafed33aeb92bad0a5b46d730221d;hp=6afaf9a54f5e8e8fdd1359ccf0066902e7a6d954;hpb=b39fc560612984e65ec30d7f37487303bf514fb3;p=oweals%2Fopenssl.git diff --git a/crypto/evp/bio_md.c b/crypto/evp/bio_md.c index 6afaf9a54f..24c7dc3bea 100644 --- a/crypto/evp/bio_md.c +++ b/crypto/evp/bio_md.c @@ -61,6 +61,8 @@ #include "internal/cryptlib.h" #include #include +#include "internal/evp_int.h" +#include "evp_locl.h" /* * BIO_put and BIO_get both add to the digest, BIO_gets returns the digest @@ -98,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); @@ -112,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;