]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Allow building of dnsdist against boringssl.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 23 Oct 2023 15:18:44 +0000 (17:18 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 24 Oct 2023 07:38:05 +0000 (09:38 +0200)
DISABLE_OCSP_STAPLING has to be defined as well, since boring does not
seem to have it.

pdns/dnsdist-idstate.hh
pdns/dnsdistdist/m4/dnsdist_enable_doq.m4
pdns/libssl.cc

index 63daead6026509f6d97718d2dd7127b1477e7c52..158bae03b24ead268fbd77f141e4b2f0a8c9444a 100644 (file)
@@ -21,6 +21,8 @@
  */
 #pragma once
 
+#include <unordered_map>
+
 #include "config.h"
 #include "dnscrypt.hh"
 #include "dnsname.hh"
index e0ea5fc6a17d7d21a86c4adcd18839443dfb7042..0488e0ee83413f46117b710fca0d8724e86346e0 100644 (file)
@@ -1,5 +1,5 @@
 AC_DEFUN([DNSDIST_ENABLE_DNS_OVER_QUIC], [
-  AC_MSG_CHECKING([whether to enable incoming DNS over QUIC (DoH) support])
+  AC_MSG_CHECKING([whether to enable incoming DNS over QUIC (DoQ) support])
   AC_ARG_ENABLE([dns-over-quic],
     AS_HELP_STRING([--enable-dns-over-quic], [enable incoming DNS over QUIC (DoQ) support (requires quiche) @<:@default=no@:>@]),
     [enable_dns_over_quic=$enableval],
index 7be8348261958b6d3afb0fe0817d8c7cd87857b8..c56c7bebefe9e44f3d79f34f8101dc548dd248a0 100644 (file)
@@ -32,6 +32,8 @@
 #include <openssl/core.h>
 #include <openssl/core_names.h>
 #include <openssl/evp.h>
+#else
+#include <openssl/hmac.h>
 #endif
 
 #ifdef HAVE_LIBSODIUM
@@ -288,7 +290,7 @@ int libssl_ticket_key_callback(SSL* /* s */, OpenSSLTLSTicketKeysRing& keyring,
   return 1;
 }
 
-static long libssl_server_name_callback(SSL* ssl, int* al, void* arg)
+static int libssl_server_name_callback(SSL* ssl, int* al, void* arg)
 {
   (void) al;
   (void) arg;