Merge pull request #26 from sthen/libressl_seclevel0

fix TLS with LibreSSL, it doesn't have :@SECLEVEL=0
This commit is contained in:
Bryan Stansell 2019-03-27 21:07:34 -07:00 committed by GitHub
commit 8455d4a8ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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