Fix compilation without deprecated OpenSSL APIs

There headers get implicitly included by ssl.h normally. With deprecated APIs disabled
they do not.
This commit is contained in:
Rosen Penev 2019-01-02 09:05:02 -08:00 committed by GitHub
parent 7315957bba
commit b1a0fa3c50

View File

@ -7,6 +7,8 @@
#include <stdarg.h>
#if HAVE_OPENSSL
# include <openssl/ssl.h>
# include <openssl/bn.h>
# include <openssl/dh.h>
# include <openssl/err.h>
# if OPENSSL_VERSION_NUMBER < 0x10100000L
# define TLS_method SSLv23_method