openssl: Fix compilation with OPENSSL_API_COMPAT=0x10100000L
authorMarcel Raad <raad@teamviewer.com>
Mon, 5 Sep 2016 16:15:25 +0000 (18:15 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 5 Sep 2016 20:51:12 +0000 (22:51 +0200)
commit4af389353a93dba11f12da554c40861b814ee2cb
tree69850c18f7ccda2080662ada5bf8566331d21fc0
parent72abf4f59ea1b9b8cf6642e4eaec70abff413f1d
openssl: Fix compilation with OPENSSL_API_COMPAT=0x10100000L

With OPENSSL_API_COMPAT=0x10100000L (OpenSSL 1.1 API), the cleanup
functions are unavailable (they're no-ops anyway in OpenSSL 1.1). The
replacements for SSL_load_error_strings, SSLeay_add_ssl_algorithms, and
OpenSSL_add_all_algorithms are called automatically [1][2]. SSLeay() is
now called OpenSSL_version_num().

[1]: https://www.openssl.org/docs/man1.1.0/ssl/OPENSSL_init_ssl.html
[2]: https://www.openssl.org/docs/man1.1.0/crypto/OPENSSL_init_crypto.html

Closes #992
lib/vtls/openssl.c