Skip to content

Commit

Permalink
lib/ldns: fix build for openssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
trimpim committed Sep 29, 2023
1 parent cd24860 commit 600738e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/ldns/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#define HAVE_DECL_NID_X9_62_PRIME256V1 1
#define HAVE_DLFCN_H 1
#define HAVE_ENGINE_LOAD_CRYPTODEV 1
#define HAVE_EVP_DSS1 1
#undef HAVE_EVP_DSS1
#define HAVE_EVP_PKEY_BASE_ID 1
#define HAVE_EVP_PKEY_KEYGEN 1
#define HAVE_EVP_SHA256 1
Expand Down
6 changes: 6 additions & 0 deletions lib/mk/ldns.mk
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,11 @@ SRC_C += $(filter-out linktest.c,$(SRC_LDNS_C))
SRC_C += $(notdir $(wildcard $(LDNS_SRC_DIR)/compat/b64*.c))
SRC_CC += getproto.cc

CC_C_OPT += -DHAVE_DSA_GET0_PQG -DHAVE_DSA_SIG_GET0 -DHAVE_DSA_SIG_SET0
CC_C_OPT += -DHAVE_EVP_MD_CTX_NEW -DHAVE_ECDSA_SIG_GET0 -DHAVE_DSA_GET0_KEY
CC_C_OPT += -Wno-stringop-truncation -Wno-array-parameter
CC_C_OPT += -Wno-int-conversion -Wno-stringop-overflow
CC_C_OPT += -Wno-implicit-function-declaration

vpath %.c $(LDNS_SRC_DIR) $(LDNS_SRC_DIR)/compat
vpath %.cc $(REP_DIR)/src/lib/ldns
2 changes: 1 addition & 1 deletion src/lib/getdns/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define HAVE_DLFCN_H 1
#define HAVE_ENDIAN_H 1
#define HAVE_ENGINE_LOAD_CRYPTODEV 1
#define HAVE_EVP_DSS1 1
#undef HAVE_EVP_DSS1
#define HAVE_EVP_MD5 1
#define HAVE_EVP_PKEY_BASE_ID 1
#define HAVE_EVP_PKEY_KEYGEN 1
Expand Down

0 comments on commit 600738e

Please sign in to comment.