OpenSSL: Fix OpenSSL 1.1.0 compatibility functions
authorDavid Benjamin <davidben@google.com>
Wed, 10 Aug 2016 17:28:45 +0000 (13:28 -0400)
committerJouni Malinen <j@w1.fi>
Sat, 13 Aug 2016 18:07:05 +0000 (21:07 +0300)
commit478441bf81ee565440fd012a7e71f160788c59bd
tree1a9a16f373aaa47405fa2ff5dd8f12eb6460ba75
parenta41215726287b3c0cd3785a00fa6823725df144f
OpenSSL: Fix OpenSSL 1.1.0 compatibility functions

To be consistent with OpenSSL 1.1.0, the free functions should
internally check for NULL. EVP_MD_CTX_free also was missing an
EVP_MD_CTX_cleanup, so this leaked a little.

OpenSSL 1.1.0 also has given get_rfc3526_prime_1536 a better namespace
with get_rfc3526_prime_1536 as a compatibility-only name. Use that
instead in 1.1.0.

Signed-off-by: David Benjamin <davidben@google.com>
src/crypto/crypto_openssl.c