mirror of
https://github.com/bstansell/conserver.git
synced 2025-01-29 15:13:51 +00:00
condensed some TLS overrides and removed extra includes
This commit is contained in:
parent
16598183c6
commit
d6af8728d7
@ -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>
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user