mirror of https://github.com/getdnsapi/getdns.git
Added checks for LibreSSL and OpenBSD
This commit is contained in:
parent
73cee29f55
commit
31031d7c57
|
@ -102,7 +102,7 @@ elseif (APPLE)
|
||||||
elseif (UNIX)
|
elseif (UNIX)
|
||||||
set(HOSTOS "unix")
|
set(HOSTOS "unix")
|
||||||
|
|
||||||
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD")
|
if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" AND NOT ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600")
|
||||||
endif ()
|
endif ()
|
||||||
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
|
||||||
|
|
|
@ -48,19 +48,21 @@
|
||||||
#include "context.h"
|
#include "context.h"
|
||||||
#include "const-info.h"
|
#include "const-info.h"
|
||||||
|
|
||||||
#ifdef USE_DANESSL
|
#if defined(USE_DANESSL) || defined(LIBRESSL_VERSION_NUMBER)
|
||||||
# include "ssl_dane/danessl.h"
|
# include "ssl_dane/danessl.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "tls.h"
|
#include "tls.h"
|
||||||
|
|
||||||
/* Double check configure has worked as expected. */
|
/* Double check configure has worked as expected. */
|
||||||
|
#ifndef LIBRESSL_VERSION_NUMBER
|
||||||
#if defined(USE_DANESSL) && \
|
#if defined(USE_DANESSL) && \
|
||||||
(defined(HAVE_SSL_DANE_ENABLE) || \
|
(defined(HAVE_SSL_DANE_ENABLE) || \
|
||||||
defined(HAVE_OPENSSL_INIT_CRYPTO) || \
|
defined(HAVE_OPENSSL_INIT_CRYPTO) || \
|
||||||
defined(HAVE_SSL_CTX_DANE_ENABLE))
|
defined(HAVE_SSL_CTX_DANE_ENABLE))
|
||||||
#error Configure error USE_DANESSL defined with OpenSSL 1.1 functions!
|
#error Configure error USE_DANESSL defined with OpenSSL 1.1 functions!
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Cipher suites recommended in RFC7525. */
|
/* Cipher suites recommended in RFC7525. */
|
||||||
static char const * const _getdns_tls_context_default_cipher_list =
|
static char const * const _getdns_tls_context_default_cipher_list =
|
||||||
|
|
Loading…
Reference in New Issue