From 0eba73a945e6824940928fc029bc28803f535294 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Wed, 7 Feb 2018 16:42:11 +0100 Subject: [PATCH] LibreSSL like OpenSSL < 1.0.2 --- configure.ac | 2 ++ src/stub.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 3c37daa3..4e7f3f62 100644 --- a/configure.ac +++ b/configure.ac @@ -441,6 +441,8 @@ AC_COMPILE_IFELSE( [#error "OpenSSL 1.0.0 or higher required for DANE library"] [#elif defined(HAVE_SSL_DANE_ENABLE)] [#error "OpenSSL has native DANE support"] + [#elif defined(LIBRESSL_VERSION_NUMBER)] + [#error "dane_ssl library does not work with LibreSSL"] [#endif] ],[[]])], [ diff --git a/src/stub.c b/src/stub.c index 1863fd4e..3c6e4a8e 100644 --- a/src/stub.c +++ b/src/stub.c @@ -1227,6 +1227,7 @@ tls_do_handshake(getdns_upstream *upstream) && !upstream->tls_fallback_ok) return STUB_SETUP_ERROR; } +#endif /* defined(USE_DANESSL) || defined(HAVE_SSL_HN_AUTH) */ DEBUG_STUB("%s %-35s: FD: %d Handshake succeeded with auth state %s. Session is %s.\n", STUB_DEBUG_SETUP_TLS, __FUNC__, upstream->fd, _getdns_auth_str(upstream->tls_auth_state), @@ -1246,7 +1247,6 @@ tls_do_handshake(getdns_upstream *upstream) NULL, upstream_write_cb, NULL)); return 0; } -#endif /* defined(USE_DANESSL) || defined(HAVE_SSL_HN_AUTH) */ static int tls_connected(getdns_upstream* upstream)