]> granicus.if.org Git - curl/commit
openssl: fix pinned public key build error in FIPS mode
authorMcDonough, Tim <timothy.mcdonough@hpe.com>
Tue, 23 Jan 2018 01:24:59 +0000 (02:24 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 25 Jan 2018 21:16:24 +0000 (22:16 +0100)
commit1433e4645b51a4ccb0b5e23a889ac9bd6093e3e2
tree61e26b1eafa195cf8c45533d31bafc07b8ffabc5
parent1c00519499f9b360992bddd872ee003da18ebbf9
openssl: fix pinned public key build error in FIPS mode

Here is a version that should work with all versions of openssl 0.9.7
through 1.1.0.

Links to the docs:
https://www.openssl.org/docs/man1.0.2/crypto/EVP_DigestInit.html
https://www.openssl.org/docs/man1.1.0/crypto/EVP_DigestInit.html

At the very bottom of the 1.1.0 documentation there is a history section
that states, " stack allocated EVP_MD_CTXs are no longer supported."

If EVP_MD_CTX_create and EVP_MD_CTX_destroy are not defined, then a
simple mapping can be used as described here:
https://wiki.openssl.org/index.php/Talk:OpenSSL_1.1.0_Changes

Closes #2258
lib/vtls/openssl.c