Remove EVP_MD_CTX_cleanup and put its functionality into EVP_MD_CTX_init
authorRichard Levitte <levitte@openssl.org>
Tue, 1 Dec 2015 00:38:35 +0000 (01:38 +0100)
committerRichard Levitte <levitte@openssl.org>
Mon, 7 Dec 2015 16:39:23 +0000 (17:39 +0100)
commit74cabf3fef77ab73c45e27cf6ed90f6db020e7c7
treea6c939e880e24d03178c2148ae8ed2a28f0117fb
parentbf7c68177b6fbb80406c60136654b6fefe7e3ba2
Remove EVP_MD_CTX_cleanup and put its functionality into EVP_MD_CTX_init

The idea is that with EVP_MD_CTX_create() and EVP_MD_CTX_destroy(),
EVP_MD_CTX_cleanup and EVP_MD_CTX_init is not used the same as before.
Instead, we need a single function that can be used to reinitialise an
existing EVP_MD_CTX that's been created with EVP_MD_CTX_create()
previously.  Combining EVP_MD_CTX_cleanup and EVP_MD_CTX_init into
that one function is the answer.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/evp/digest.c
include/openssl/evp.h