forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-dns/nsd: Fixed build with USE="-ssl"
Closes: https://bugs.gentoo.org/832213 Signed-off-by: Lars Wendler <[email protected]>
- Loading branch information
Lars Wendler
committed
Jan 28, 2022
1 parent
9abd541
commit a27323c
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From c5e6a8e5e566380c8c6731e9feb7ac686a1c0735 Mon Sep 17 00:00:00 2001 | ||
From: "W.C.A. Wijngaards" <[email protected]> | ||
Date: Fri, 28 Jan 2022 16:38:53 +0100 | ||
Subject: [PATCH] - Fix #206: build with --without-ssl fails. | ||
|
||
diff --git a/edns.c b/edns.c | ||
index c7fc39d9..478ec681 100644 | ||
--- a/edns.c | ||
+++ b/edns.c | ||
@@ -21,6 +21,12 @@ | ||
#include "nsd.h" | ||
#include "query.h" | ||
|
||
+#if !defined(HAVE_SSL) || !defined(HAVE_CRYPTO_MEMCMP) | ||
+/* we need fixed time compare, pull it in from tsig.c */ | ||
+#define CRYPTO_memcmp memcmp_fixedtime | ||
+int memcmp_fixedtime(const void *s1, const void *s2, size_t n); | ||
+#endif | ||
+ | ||
void | ||
edns_init_data(edns_data_type *data, uint16_t max_length) | ||
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters