condensed some TLS overrides and removed extra includes

This commit is contained in:
Bryan Stansell 2018-05-27 18:56:25 -07:00
parent 16598183c6
commit d6af8728d7
3 changed files with 6 additions and 15 deletions

View File

@ -10,6 +10,12 @@
#if HAVE_OPENSSL
# include <openssl/ssl.h>
# include <openssl/err.h>
# if OPENSSL_VERSION_NUMBER < 0x10100000L
# define TLS_method SSLv23_method
# define CIPHER_SEC0
# else
# define CIPHER_SEC0 ":@SECLEVEL=0"
# endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
#endif
#if HAVE_GSSAPI
# include <gssapi/gssapi.h>

View File

@ -115,10 +115,6 @@ int DH_set0_pqg(DH *dh, BIGNUM *p, BIGNUM *q, BIGNUM *g)
return 1;
}
#define TLS_method SSLv23_method
#define CIPHER_SEC0
#else
#define CIPHER_SEC0 ":@SECLEVEL=0"
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
SSL_CTX *ctx = (SSL_CTX *)0;

View File

@ -36,8 +36,6 @@
#include <readconf.h>
#include <version.h>
#if HAVE_OPENSSL
# include <openssl/ssl.h>
# include <openssl/err.h>
# include <openssl/opensslv.h>
#endif
#if HAVE_GSSAPI
@ -71,15 +69,6 @@ struct winsize ws;
#endif
#if HAVE_OPENSSL
#if OPENSSL_VERSION_NUMBER < 0x10100000L
#define TLS_method SSLv23_method
#define CIPHER_SEC0
#else
#define CIPHER_SEC0 ":@SECLEVEL=0"
#endif /* OPENSSL_VERSION_NUMBER < 0x10100000L */
SSL_CTX *ctx = (SSL_CTX *)0;
void