2021-04-29 16:12:16 +00:00
|
|
|
From 8f232dac49cbb143a30a5c807f9085f3ef251f0e Mon Sep 17 00:00:00 2001
|
2021-01-21 10:12:46 +00:00
|
|
|
From: Petr Mensik <pemensik@redhat.com>
|
|
|
|
Date: Thu, 21 Jan 2021 10:46:20 +0100
|
|
|
|
Subject: [PATCH] Enable custom pkcs11 native build
|
|
|
|
|
|
|
|
Share common parts like libisc, libcc and others. But provide native
|
|
|
|
pkcs11 libraries as a new copy of libdns and libns.
|
|
|
|
---
|
|
|
|
bin/Makefile.in | 2 +-
|
|
|
|
bin/confgen/Makefile.in | 2 +-
|
|
|
|
bin/dnssec-pkcs11/Makefile.in | 39 +++++++++++++++++---------------
|
|
|
|
bin/named-pkcs11/Makefile.in | 33 ++++++++++++++-------------
|
|
|
|
configure.ac | 19 ++++++++++++++++
|
|
|
|
lib/Makefile.in | 2 +-
|
|
|
|
lib/dns-pkcs11/Makefile.in | 22 +++++++++---------
|
|
|
|
lib/dns-pkcs11/tests/Makefile.in | 8 +++----
|
|
|
|
lib/ns-pkcs11/Makefile.in | 26 ++++++++++-----------
|
|
|
|
lib/ns-pkcs11/tests/Makefile.in | 12 +++++-----
|
|
|
|
make/includes.in | 7 ++++++
|
|
|
|
11 files changed, 101 insertions(+), 71 deletions(-)
|
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
diff --git a/bin/Makefile.in b/bin/Makefile.in
|
2019-07-23 13:18:22 +00:00
|
|
|
index 9ad7f62..094775a 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/bin/Makefile.in
|
|
|
|
+++ b/bin/Makefile.in
|
2019-07-23 13:18:22 +00:00
|
|
|
@@ -11,7 +11,7 @@ srcdir = @srcdir@
|
2014-08-21 14:37:44 +00:00
|
|
|
VPATH = @srcdir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
|
2018-06-18 10:24:42 +00:00
|
|
|
-SUBDIRS = named rndc dig delv dnssec tools nsupdate check confgen \
|
2019-07-23 13:18:22 +00:00
|
|
|
+SUBDIRS = named named-pkcs11 rndc dig delv dnssec dnssec-pkcs11 tools nsupdate check confgen \
|
|
|
|
@NZD_TOOLS@ @PYTHON_TOOLS@ @PKCS11_TOOLS@ plugins tests
|
2014-08-21 14:37:44 +00:00
|
|
|
TARGETS =
|
|
|
|
|
2019-10-18 23:51:12 +00:00
|
|
|
diff --git a/bin/confgen/Makefile.in b/bin/confgen/Makefile.in
|
2020-06-18 02:08:57 +00:00
|
|
|
index c126bf3..1b7512d 100644
|
2019-10-18 23:51:12 +00:00
|
|
|
--- a/bin/confgen/Makefile.in
|
|
|
|
+++ b/bin/confgen/Makefile.in
|
|
|
|
@@ -22,7 +22,7 @@ VERSION=@BIND9_VERSION@
|
|
|
|
CINCLUDES = -I${srcdir}/include ${ISC_INCLUDES} ${ISCCC_INCLUDES} \
|
|
|
|
${ISCCFG_INCLUDES} ${DNS_INCLUDES} ${BIND9_INCLUDES}
|
|
|
|
|
|
|
|
-CDEFINES = @USE_PKCS11@
|
|
|
|
+CDEFINES =
|
|
|
|
CWARNINGS =
|
|
|
|
|
|
|
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
diff --git a/bin/dnssec-pkcs11/Makefile.in b/bin/dnssec-pkcs11/Makefile.in
|
2020-06-18 02:08:57 +00:00
|
|
|
index ace0e5a..e0f6a00 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/bin/dnssec-pkcs11/Makefile.in
|
|
|
|
+++ b/bin/dnssec-pkcs11/Makefile.in
|
2020-04-27 19:59:25 +00:00
|
|
|
@@ -15,18 +15,18 @@ VERSION=@BIND9_VERSION@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
@BIND9_MAKE_INCLUDES@
|
|
|
|
|
2020-04-27 19:59:25 +00:00
|
|
|
-CINCLUDES = ${DNS_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
|
|
|
|
+CINCLUDES = ${DNS_PKCS11_INCLUDES} ${ISC_INCLUDES} ${ISCCFG_INCLUDES} \
|
|
|
|
${OPENSSL_CFLAGS}
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2020-04-27 19:59:25 +00:00
|
|
|
-CDEFINES = -DVERSION=\"${VERSION}\" -DNAMED_CONFFILE=\"${sysconfdir}/named.conf\"
|
|
|
|
+CDEFINES = -DVERSION=\"${VERSION}\" -DNAMED_CONFFILE=\"${sysconfdir}/named.conf\" -DUSE_PKCS11=1
|
2014-08-21 14:37:44 +00:00
|
|
|
CWARNINGS =
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
-DNSLIBS = ../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
|
|
|
|
+DNSLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@ @NO_LIBTOOL_DNSLIBS@
|
2020-04-27 19:59:25 +00:00
|
|
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
ISCLIBS = ../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
|
|
|
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @NO_LIBTOOL_ISCLIBS@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
-DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
|
|
|
+DNSDEPLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@
|
2019-10-18 23:51:12 +00:00
|
|
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
2020-04-27 19:59:25 +00:00
|
|
|
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2020-04-27 19:59:25 +00:00
|
|
|
@@ -36,12 +36,15 @@ LIBS = ${DNSLIBS} ${ISCCFGLIBS} ${ISCLIBS} @LIBS@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2020-04-27 19:59:25 +00:00
|
|
|
NOSYMLIBS = ${DNSLIBS} ${ISCCFGLIBS} ${ISCNOSYMLIBS} @LIBS@
|
|
|
|
|
|
|
|
+# Add suffix to all targets
|
|
|
|
+EXEEXT = -pkcs11@EXEEXT@
|
|
|
|
+
|
2014-08-21 14:37:44 +00:00
|
|
|
# Alphabetically
|
2019-07-23 13:18:22 +00:00
|
|
|
-TARGETS = dnssec-cds@EXEEXT@ dnssec-dsfromkey@EXEEXT@ \
|
|
|
|
- dnssec-importkey@EXEEXT@ dnssec-keyfromlabel@EXEEXT@ \
|
|
|
|
- dnssec-keygen@EXEEXT@ dnssec-revoke@EXEEXT@ \
|
|
|
|
- dnssec-settime@EXEEXT@ dnssec-signzone@EXEEXT@ \
|
|
|
|
- dnssec-verify@EXEEXT@
|
2020-04-27 19:59:25 +00:00
|
|
|
+TARGETS = dnssec-cds${EXEEXT} dnssec-dsfromkey${EXEEXT} \
|
|
|
|
+ dnssec-importkey${EXEEXT} dnssec-keyfromlabel${EXEEXT} \
|
|
|
|
+ dnssec-keygen${EXEEXT} dnssec-revoke${EXEEXT} \
|
|
|
|
+ dnssec-settime${EXEEXT} dnssec-signzone${EXEEXT} \
|
|
|
|
+ dnssec-verify${EXEEXT}
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
OBJS = dnssectool.@O@
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
@@ -52,19 +55,19 @@ SRCS = dnssec-cds.c dnssec-dsfromkey.c dnssec-importkey.c \
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
@BIND9_MAKE_RULES@
|
|
|
|
|
2019-07-23 13:18:22 +00:00
|
|
|
-dnssec-cds@EXEEXT@: dnssec-cds.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-cds-pkcs11@EXEEXT@: dnssec-cds.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-cds.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
-dnssec-dsfromkey@EXEEXT@: dnssec-dsfromkey.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-dsfromkey-pkcs11@EXEEXT@: dnssec-dsfromkey.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-dsfromkey.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
|
|
|
-dnssec-keyfromlabel@EXEEXT@: dnssec-keyfromlabel.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-keyfromlabel-pkcs11@EXEEXT@: dnssec-keyfromlabel.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-keyfromlabel.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
|
|
|
-dnssec-keygen@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-keygen-pkcs11@EXEEXT@: dnssec-keygen.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-keygen.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
@@ -72,7 +75,7 @@ dnssec-signzone.@O@: dnssec-signzone.c
|
2014-08-21 14:37:44 +00:00
|
|
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
|
|
|
|
-c ${srcdir}/dnssec-signzone.c
|
|
|
|
|
|
|
|
-dnssec-signzone@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-signzone-pkcs11@EXEEXT@: dnssec-signzone.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-signzone.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
@@ -80,19 +83,19 @@ dnssec-verify.@O@: dnssec-verify.c
|
2014-08-21 14:37:44 +00:00
|
|
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} -DVERSION=\"${VERSION}\" \
|
|
|
|
-c ${srcdir}/dnssec-verify.c
|
|
|
|
|
|
|
|
-dnssec-verify@EXEEXT@: dnssec-verify.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-verify-pkcs11@EXEEXT@: dnssec-verify.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
export BASEOBJS="dnssec-verify.@O@ ${OBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
|
|
|
|
|
|
|
-dnssec-revoke@EXEEXT@: dnssec-revoke.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-revoke-pkcs11@EXEEXT@: dnssec-revoke.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
|
|
|
dnssec-revoke.@O@ ${OBJS} ${LIBS}
|
|
|
|
|
|
|
|
-dnssec-settime@EXEEXT@: dnssec-settime.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-settime-pkcs11@EXEEXT@: dnssec-settime.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
|
|
|
dnssec-settime.@O@ ${OBJS} ${LIBS}
|
|
|
|
|
|
|
|
-dnssec-importkey@EXEEXT@: dnssec-importkey.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
+dnssec-importkey-pkcs11@EXEEXT@: dnssec-importkey.@O@ ${OBJS} ${DEPLIBS}
|
|
|
|
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ \
|
|
|
|
dnssec-importkey.@O@ ${OBJS} ${LIBS}
|
|
|
|
|
|
|
|
diff --git a/bin/named-pkcs11/Makefile.in b/bin/named-pkcs11/Makefile.in
|
2021-03-25 21:17:54 +00:00
|
|
|
index 98125dd..518a75f 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/bin/named-pkcs11/Makefile.in
|
|
|
|
+++ b/bin/named-pkcs11/Makefile.in
|
2020-04-27 19:59:25 +00:00
|
|
|
@@ -37,13 +37,14 @@ DBDRIVER_LIBS =
|
|
|
|
|
|
|
|
DLZ_DRIVER_DIR = ${top_srcdir}/contrib/dlz/drivers
|
|
|
|
|
|
|
|
-DLZDRIVER_OBJS = @DLZ_DRIVER_OBJS@
|
|
|
|
-DLZDRIVER_SRCS = @DLZ_DRIVER_SRCS@
|
|
|
|
-DLZDRIVER_INCLUDES = @DLZ_DRIVER_INCLUDES@
|
|
|
|
-DLZDRIVER_LIBS = @DLZ_DRIVER_LIBS@
|
|
|
|
+# Skip building on PKCS11 variant
|
|
|
|
+DLZDRIVER_OBJS =
|
|
|
|
+DLZDRIVER_SRCS =
|
|
|
|
+DLZDRIVER_INCLUDES =
|
|
|
|
+DLZDRIVER_LIBS =
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include -I. \
|
2019-07-23 13:18:22 +00:00
|
|
|
- ${NS_INCLUDES} ${DNS_INCLUDES} \
|
2019-10-18 23:51:12 +00:00
|
|
|
+ ${NS_PKCS11_INCLUDES} ${DNS_PKCS11_INCLUDES} \
|
2019-07-23 13:18:22 +00:00
|
|
|
${BIND9_INCLUDES} ${ISCCFG_INCLUDES} ${ISCCC_INCLUDES} \
|
2019-10-18 23:51:12 +00:00
|
|
|
${ISC_INCLUDES} ${DLZDRIVER_INCLUDES} \
|
2020-04-27 19:59:25 +00:00
|
|
|
${DBDRIVER_INCLUDES} \
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -56,24 +57,24 @@ CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include -I. \
|
2020-06-18 02:08:57 +00:00
|
|
|
${LIBXML2_CFLAGS} \
|
|
|
|
${MAXMINDDB_CFLAGS}
|
2020-04-27 19:59:25 +00:00
|
|
|
|
|
|
|
-CDEFINES = @CONTRIB_DLZ@
|
|
|
|
+CDEFINES =
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
CWARNINGS =
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
-DNSLIBS = ../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
|
|
|
|
+DNSLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@ @NO_LIBTOOL_DNSLIBS@
|
2014-08-21 14:37:44 +00:00
|
|
|
ISCCFGLIBS = ../../lib/isccfg/libisccfg.@A@
|
|
|
|
ISCCCLIBS = ../../lib/isccc/libisccc.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
ISCLIBS = ../../lib/isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
|
|
|
|
ISCNOSYMLIBS = ../../lib/isc/libisc-nosymtbl.@A@ @NO_LIBTOOL_ISCLIBS@
|
2014-08-21 14:37:44 +00:00
|
|
|
BIND9LIBS = ../../lib/bind9/libbind9.@A@
|
2019-10-18 23:51:12 +00:00
|
|
|
-NSLIBS = ../../lib/ns/libns.@A@
|
|
|
|
+NSLIBS = ../../lib/ns-pkcs11/libns-pkcs11.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
-DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
2019-07-24 17:05:06 +00:00
|
|
|
+DNSDEPLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
|
|
|
|
ISCCCDEPLIBS = ../../lib/isccc/libisccc.@A@
|
2019-10-18 23:51:12 +00:00
|
|
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
BIND9DEPLIBS = ../../lib/bind9/libbind9.@A@
|
2019-10-18 23:51:12 +00:00
|
|
|
-NSDEPLIBS = ../../lib/ns/libns.@A@
|
|
|
|
+NSDEPLIBS = ../../lib/ns-pkcs11/libns-pkcs11.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2019-10-18 23:51:12 +00:00
|
|
|
DEPLIBS = ${NSDEPLIBS} ${DNSDEPLIBS} ${BIND9DEPLIBS} \
|
|
|
|
${ISCCFGDEPLIBS} ${ISCCCDEPLIBS} ${ISCDEPLIBS}
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -93,7 +94,7 @@ NOSYMLIBS = ${NSLIBS} ${DNSLIBS} ${BIND9LIBS} \
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
SUBDIRS = unix
|
|
|
|
|
2019-07-23 13:18:22 +00:00
|
|
|
-TARGETS = named@EXEEXT@ feature-test@EXEEXT@
|
2019-02-28 17:17:53 +00:00
|
|
|
+TARGETS = named-pkcs11@EXEEXT@ feature-test-pkcs11@EXEEXT@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2019-07-24 10:50:29 +00:00
|
|
|
GEOIP2LINKOBJS = geoip.@O@
|
2020-04-27 19:59:25 +00:00
|
|
|
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -151,7 +152,7 @@ server.@O@: server.c
|
2016-11-16 07:46:09 +00:00
|
|
|
-DPRODUCT=\"${PRODUCT}\" \
|
|
|
|
-DVERSION=\"${VERSION}\" -c ${srcdir}/server.c
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2018-02-15 13:31:19 +00:00
|
|
|
-named@EXEEXT@: ${OBJS} ${DEPLIBS}
|
|
|
|
+named-pkcs11@EXEEXT@: ${OBJS} ${DEPLIBS}
|
2014-08-21 14:37:44 +00:00
|
|
|
export MAKE_SYMTABLE="yes"; \
|
|
|
|
export BASEOBJS="${OBJS} ${UOBJS}"; \
|
|
|
|
${FINALBUILDCMD}
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -161,7 +162,7 @@ feature-test.@O@: ${top_srcdir}/bin/tests/system/feature-test.c
|
2019-02-28 17:17:53 +00:00
|
|
|
${LIBTOOL_MODE_COMPILE} ${CC} ${ALL_CFLAGS} \
|
|
|
|
-c ${top_srcdir}/bin/tests/system/feature-test.c
|
|
|
|
|
|
|
|
-feature-test@EXEEXT@: feature-test.@O@
|
|
|
|
+feature-test-pkcs11@EXEEXT@: feature-test.@O@
|
|
|
|
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} \
|
|
|
|
-o $@ feature-test.@O@ ${ISCLIBS} ${LIBS}
|
2018-02-15 13:31:19 +00:00
|
|
|
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -180,11 +181,11 @@ statschannel.@O@: bind9.xsl.h
|
2020-06-18 02:08:57 +00:00
|
|
|
installdirs:
|
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${sbindir}
|
2016-11-16 07:46:09 +00:00
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
-install:: named@EXEEXT@ installdirs
|
2014-08-21 14:37:44 +00:00
|
|
|
- ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named@EXEEXT@ ${DESTDIR}${sbindir}
|
2020-06-18 02:08:57 +00:00
|
|
|
+install:: named-pkcs11@EXEEXT@ installdirs
|
2014-08-21 14:37:44 +00:00
|
|
|
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_PROGRAM} named-pkcs11@EXEEXT@ ${DESTDIR}${sbindir}
|
|
|
|
|
2017-06-15 15:50:41 +00:00
|
|
|
uninstall::
|
|
|
|
- ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named@EXEEXT@
|
|
|
|
+ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${sbindir}/named-pkcs11@EXEEXT@
|
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
@DLZ_DRIVER_RULES@
|
|
|
|
|
2019-03-05 20:49:26 +00:00
|
|
|
diff --git a/configure.ac b/configure.ac
|
2021-04-29 16:12:16 +00:00
|
|
|
index da99e85..55680ea 100644
|
2019-03-05 20:49:26 +00:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -1251,12 +1251,14 @@ AC_SUBST(USE_GSSAPI)
|
2015-01-14 11:38:32 +00:00
|
|
|
AC_SUBST(DST_GSSAPI_INC)
|
|
|
|
AC_SUBST(DNS_GSSAPI_LIBS)
|
2019-07-23 13:18:22 +00:00
|
|
|
DNS_CRYPTO_LIBS="$DNS_GSSAPI_LIBS"
|
2015-01-14 11:38:32 +00:00
|
|
|
+DNS_CRYPTO_PK11_LIBS="$DNS_GSSAPI_LIBS $DNS_CRYPTO_PK11_LIBS"
|
|
|
|
|
|
|
|
#
|
|
|
|
# Applications linking with libdns also need to link with these libraries.
|
|
|
|
#
|
|
|
|
|
|
|
|
AC_SUBST(DNS_CRYPTO_LIBS)
|
|
|
|
+AC_SUBST(DNS_CRYPTO_PK11_LIBS)
|
|
|
|
|
|
|
|
#
|
2019-07-23 13:18:22 +00:00
|
|
|
# was --with-lmdb specified?
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2327,6 +2329,8 @@ AC_SUBST(BIND9_DNS_BUILDINCLUDE)
|
2019-07-23 13:18:22 +00:00
|
|
|
AC_SUBST(BIND9_NS_BUILDINCLUDE)
|
|
|
|
AC_SUBST(BIND9_BIND9_BUILDINCLUDE)
|
|
|
|
AC_SUBST(BIND9_IRS_BUILDINCLUDE)
|
|
|
|
+AC_SUBST(BIND9_DNS_PKCS11_BUILDINCLUDE)
|
|
|
|
+AC_SUBST(BIND9_NS_PKCS11_BUILDINCLUDE)
|
|
|
|
if test "X$srcdir" != "X"; then
|
|
|
|
BIND9_ISC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isc/include"
|
|
|
|
BIND9_ISCCC_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/isccc/include"
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2335,6 +2339,8 @@ if test "X$srcdir" != "X"; then
|
2019-07-23 13:18:22 +00:00
|
|
|
BIND9_NS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns/include"
|
|
|
|
BIND9_BIND9_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/bind9/include"
|
|
|
|
BIND9_IRS_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/irs/include"
|
|
|
|
+ BIND9_DNS_PKCS11_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/dns-pkcs11/include"
|
|
|
|
+ BIND9_NS_PKCS11_BUILDINCLUDE="-I${BIND9_TOP_BUILDDIR}/lib/ns-pkcs11/include"
|
|
|
|
else
|
|
|
|
BIND9_ISC_BUILDINCLUDE=""
|
|
|
|
BIND9_ISCCC_BUILDINCLUDE=""
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2343,6 +2349,8 @@ else
|
2019-07-23 13:18:22 +00:00
|
|
|
BIND9_NS_BUILDINCLUDE=""
|
|
|
|
BIND9_BIND9_BUILDINCLUDE=""
|
|
|
|
BIND9_IRS_BUILDINCLUDE=""
|
|
|
|
+ BIND9_DNS_PKCS11_BUILDINCLUDE=""
|
|
|
|
+ BIND9_NS_PKCS11_BUILDINCLUDE=""
|
2014-08-21 14:37:44 +00:00
|
|
|
fi
|
2019-07-23 13:18:22 +00:00
|
|
|
|
|
|
|
AC_SUBST_FILE(BIND9_MAKE_INCLUDES)
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2798,8 +2806,11 @@ AC_CONFIG_FILES([
|
2015-01-14 11:38:32 +00:00
|
|
|
bin/delv/Makefile
|
2014-08-21 14:37:44 +00:00
|
|
|
bin/dig/Makefile
|
|
|
|
bin/dnssec/Makefile
|
2019-07-23 13:18:22 +00:00
|
|
|
+ bin/dnssec-pkcs11/Makefile
|
2014-08-21 14:37:44 +00:00
|
|
|
bin/named/Makefile
|
2015-01-14 11:38:32 +00:00
|
|
|
bin/named/unix/Makefile
|
2014-08-21 14:37:44 +00:00
|
|
|
+ bin/named-pkcs11/Makefile
|
|
|
|
+ bin/named-pkcs11/unix/Makefile
|
|
|
|
bin/nsupdate/Makefile
|
|
|
|
bin/pkcs11/Makefile
|
2019-07-23 13:18:22 +00:00
|
|
|
bin/plugins/Makefile
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2861,6 +2872,10 @@ AC_CONFIG_FILES([
|
2014-08-21 14:37:44 +00:00
|
|
|
lib/dns/include/dns/Makefile
|
|
|
|
lib/dns/include/dst/Makefile
|
|
|
|
lib/dns/tests/Makefile
|
|
|
|
+ lib/dns-pkcs11/Makefile
|
|
|
|
+ lib/dns-pkcs11/include/Makefile
|
|
|
|
+ lib/dns-pkcs11/include/dns/Makefile
|
|
|
|
+ lib/dns-pkcs11/include/dst/Makefile
|
2015-01-14 11:38:32 +00:00
|
|
|
lib/irs/Makefile
|
|
|
|
lib/irs/include/Makefile
|
|
|
|
lib/irs/include/irs/Makefile
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -2893,6 +2908,10 @@ AC_CONFIG_FILES([
|
2019-10-18 23:51:12 +00:00
|
|
|
lib/ns/include/Makefile
|
|
|
|
lib/ns/include/ns/Makefile
|
|
|
|
lib/ns/tests/Makefile
|
|
|
|
+ lib/ns-pkcs11/Makefile
|
|
|
|
+ lib/ns-pkcs11/include/Makefile
|
|
|
|
+ lib/ns-pkcs11/include/ns/Makefile
|
|
|
|
+ lib/ns-pkcs11/tests/Makefile
|
|
|
|
lib/samples/Makefile
|
|
|
|
lib/samples/Makefile-postinstall
|
2020-04-27 19:59:25 +00:00
|
|
|
make/Makefile
|
2014-08-21 14:37:44 +00:00
|
|
|
diff --git a/lib/Makefile.in b/lib/Makefile.in
|
2019-10-18 23:51:12 +00:00
|
|
|
index ffa2d5a..6fbc192 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/lib/Makefile.in
|
|
|
|
+++ b/lib/Makefile.in
|
2018-06-18 10:24:42 +00:00
|
|
|
@@ -15,7 +15,7 @@ top_srcdir = @top_srcdir@
|
2014-08-21 14:37:44 +00:00
|
|
|
# Attempt to disable parallel processing.
|
|
|
|
.NOTPARALLEL:
|
|
|
|
.NO_PARALLEL:
|
2019-07-23 13:18:22 +00:00
|
|
|
-SUBDIRS = isc isccc dns ns isccfg bind9 irs samples
|
2019-10-18 23:51:12 +00:00
|
|
|
+SUBDIRS = isc isccc dns dns-pkcs11 ns ns-pkcs11 isccfg bind9 irs samples
|
2014-08-21 14:37:44 +00:00
|
|
|
TARGETS =
|
|
|
|
|
|
|
|
@BIND9_MAKE_RULES@
|
|
|
|
diff --git a/lib/dns-pkcs11/Makefile.in b/lib/dns-pkcs11/Makefile.in
|
2021-04-29 16:12:16 +00:00
|
|
|
index 58bda3c..d6a45df 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/lib/dns-pkcs11/Makefile.in
|
|
|
|
+++ b/lib/dns-pkcs11/Makefile.in
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -22,7 +22,7 @@ VERSION=@BIND9_VERSION@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
@BIND9_MAKE_INCLUDES@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2015-01-14 11:38:32 +00:00
|
|
|
-CINCLUDES = -I. -I${top_srcdir}/lib/dns -Iinclude ${DNS_INCLUDES} \
|
|
|
|
+CINCLUDES = -I. -I${top_srcdir}/lib/dns-pkcs11 -Iinclude ${DNS_PKCS11_INCLUDES} \
|
2020-04-27 19:59:25 +00:00
|
|
|
${ISC_INCLUDES} \
|
2020-06-18 02:08:57 +00:00
|
|
|
${FSTRM_CFLAGS} \
|
2020-04-27 19:59:25 +00:00
|
|
|
${OPENSSL_CFLAGS} @DST_GSSAPI_INC@ \
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -32,7 +32,7 @@ CINCLUDES = -I. -I${top_srcdir}/lib/dns -Iinclude ${DNS_INCLUDES} \
|
2020-06-18 02:08:57 +00:00
|
|
|
${LMDB_CFLAGS} \
|
2020-04-27 19:59:25 +00:00
|
|
|
${MAXMINDDB_CFLAGS}
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
-CDEFINES = @USE_GSSAPI@
|
|
|
|
+CDEFINES = @USE_GSSAPI@ @USE_PKCS11@
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
CWARNINGS =
|
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -135,15 +135,15 @@ version.@O@: version.c
|
2021-03-25 21:17:54 +00:00
|
|
|
-DMAPAPI=\"${MAPAPI}\" \
|
2015-01-14 11:38:32 +00:00
|
|
|
-c ${srcdir}/version.c
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
-libdns.@SA@: ${OBJS}
|
|
|
|
+libdns-pkcs11.@SA@: ${OBJS}
|
|
|
|
${AR} ${ARFLAGS} $@ ${OBJS}
|
|
|
|
${RANLIB} $@
|
|
|
|
|
|
|
|
-libdns.la: ${OBJS}
|
|
|
|
+libdns-pkcs11.la: ${OBJS}
|
|
|
|
${LIBTOOL_MODE_LINK} \
|
|
|
|
- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns.la -rpath ${libdir} \
|
|
|
|
+ ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libdns-pkcs11.la -rpath ${libdir} \
|
2021-03-25 21:17:54 +00:00
|
|
|
-release "${VERSION}" \
|
2014-08-21 14:37:44 +00:00
|
|
|
- ${OBJS} ${ISCLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
|
|
|
|
+ ${OBJS} ${ISCLIBS} @DNS_CRYPTO_PK11_LIBS@ ${LIBS}
|
2017-06-15 15:50:41 +00:00
|
|
|
|
2017-07-10 09:52:38 +00:00
|
|
|
include: gen
|
|
|
|
${MAKE} include/dns/enumtype.h
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -174,22 +174,22 @@ gen: gen.c
|
2019-07-24 10:50:29 +00:00
|
|
|
${BUILD_CPPFLAGS} ${BUILD_LDFLAGS} -o $@ ${srcdir}/gen.c \
|
|
|
|
${BUILD_LIBS} ${LFS_LIBS}
|
2017-07-10 09:52:38 +00:00
|
|
|
|
|
|
|
-timestamp: include libdns.@A@
|
|
|
|
+timestamp: include libdns-pkcs11.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
touch timestamp
|
2017-06-15 15:50:41 +00:00
|
|
|
|
2017-07-10 09:52:38 +00:00
|
|
|
-testdirs: libdns.@A@
|
|
|
|
+testdirs: libdns-pkcs11.@A@
|
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
installdirs:
|
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
|
2017-06-15 15:50:41 +00:00
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
install:: timestamp installdirs
|
|
|
|
- ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libdns.@A@ ${DESTDIR}${libdir}
|
|
|
|
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libdns-pkcs11.@A@ ${DESTDIR}${libdir}
|
2017-06-15 15:50:41 +00:00
|
|
|
|
|
|
|
uninstall::
|
|
|
|
- ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libdns.@A@
|
|
|
|
+ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libdns-pkcs11.@A@
|
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
clean distclean::
|
|
|
|
- rm -f libdns.@A@ timestamp
|
|
|
|
+ rm -f libdns-pkcs11.@A@ timestamp
|
|
|
|
rm -f gen code.h include/dns/enumtype.h include/dns/enumclass.h
|
|
|
|
rm -f include/dns/rdatastruct.h
|
2019-07-24 10:50:29 +00:00
|
|
|
rm -f dnstap.pb-c.c dnstap.pb-c.h
|
2019-10-18 23:51:12 +00:00
|
|
|
diff --git a/lib/dns-pkcs11/tests/Makefile.in b/lib/dns-pkcs11/tests/Makefile.in
|
2021-03-25 21:17:54 +00:00
|
|
|
index 3bb5e01..c96fe7d 100644
|
2019-10-18 23:51:12 +00:00
|
|
|
--- a/lib/dns-pkcs11/tests/Makefile.in
|
|
|
|
+++ b/lib/dns-pkcs11/tests/Makefile.in
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -15,15 +15,15 @@ VERSION=@BIND9_VERSION@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
|
|
|
@BIND9_MAKE_INCLUDES@
|
|
|
|
|
|
|
|
-CINCLUDES = -I. -Iinclude ${DNS_INCLUDES} ${ISC_INCLUDES} \
|
|
|
|
+CINCLUDES = -I. -Iinclude ${DNS_PKCS11_INCLUDES} ${ISC_INCLUDES} \
|
2021-03-25 21:17:54 +00:00
|
|
|
${FSTRM_CFLAGS} ${OPENSSL_CFLAGS} \
|
|
|
|
${PROTOBUF_C_CFLAGS} ${MAXMINDDB_CFLAGS} @CMOCKA_CFLAGS@
|
2019-10-18 23:51:12 +00:00
|
|
|
-CDEFINES = -DTESTS="\"${top_builddir}/lib/dns/tests/\""
|
|
|
|
+CDEFINES = @USE_PKCS11@ -DTESTS="\"${top_builddir}/lib/dns-pkcs11/tests/\""
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
ISCLIBS = ../../isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
ISCDEPLIBS = ../../isc/libisc.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
-DNSLIBS = ../libdns.@A@ @NO_LIBTOOL_DNSLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
-DNSDEPLIBS = ../libdns.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
+DNSLIBS = ../libdns-pkcs11.@A@ @NO_LIBTOOL_DNSLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
+DNSDEPLIBS = ../libdns-pkcs11.@A@
|
|
|
|
|
|
|
|
LIBS = @LIBS@ @CMOCKA_LIBS@
|
|
|
|
|
|
|
|
diff --git a/lib/ns-pkcs11/Makefile.in b/lib/ns-pkcs11/Makefile.in
|
2021-04-29 16:12:16 +00:00
|
|
|
index bc683ce..7a9d2f2 100644
|
2019-10-18 23:51:12 +00:00
|
|
|
--- a/lib/ns-pkcs11/Makefile.in
|
|
|
|
+++ b/lib/ns-pkcs11/Makefile.in
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -16,12 +16,12 @@ VERSION=@BIND9_VERSION@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
@BIND9_MAKE_INCLUDES@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
|
|
|
-CINCLUDES = -I. -I${top_srcdir}/lib/ns -Iinclude \
|
|
|
|
- ${NS_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
|
|
|
|
+CINCLUDES = -I. -I${top_srcdir}/lib/ns-pkcs11 -Iinclude \
|
|
|
|
+ ${NS_PKCS11_INCLUDES} ${DNS_PKCS11_INCLUDES} ${ISC_INCLUDES} \
|
2020-06-18 02:08:57 +00:00
|
|
|
${OPENSSL_CFLAGS} @DST_GSSAPI_INC@ \
|
|
|
|
${FSTRM_CFLAGS}
|
2019-10-18 23:51:12 +00:00
|
|
|
|
2020-04-27 19:59:25 +00:00
|
|
|
-CDEFINES = -DNAMED_PLUGINDIR=\"${plugindir}\"
|
|
|
|
+CDEFINES = @USE_PKCS11@ -DNAMED_PLUGINDIR=\"${plugindir}\"
|
|
|
|
|
|
|
|
CWARNINGS =
|
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -29,9 +29,9 @@ ISCLIBS = ../../lib/isc/libisc.@A@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
|
|
|
ISCDEPLIBS = ../../lib/isc/libisc.@A@
|
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
-DNSLIBS = ../../lib/dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
|
|
|
|
+DNSLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@ @NO_LIBTOOL_DNSLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
|
|
|
-DNSDEPLIBS = ../../lib/dns/libdns.@A@
|
|
|
|
+DNSDEPLIBS = ../../lib/dns-pkcs11/libdns-pkcs11.@A@
|
|
|
|
|
|
|
|
LIBS = @LIBS@
|
|
|
|
|
2021-04-29 16:12:16 +00:00
|
|
|
@@ -60,28 +60,28 @@ version.@O@: version.c
|
2021-03-25 21:17:54 +00:00
|
|
|
-DMAJOR=\"${MAJOR}\" \
|
2014-08-21 14:37:44 +00:00
|
|
|
-c ${srcdir}/version.c
|
|
|
|
|
2019-10-18 23:51:12 +00:00
|
|
|
-libns.@SA@: ${OBJS}
|
|
|
|
+libns-pkcs11.@SA@: ${OBJS}
|
2014-08-21 14:37:44 +00:00
|
|
|
${AR} ${ARFLAGS} $@ ${OBJS}
|
|
|
|
${RANLIB} $@
|
|
|
|
|
2019-10-18 23:51:12 +00:00
|
|
|
-libns.la: ${OBJS}
|
|
|
|
+libns-pkcs11.la: ${OBJS}
|
2014-08-21 14:37:44 +00:00
|
|
|
${LIBTOOL_MODE_LINK} \
|
2019-10-18 23:51:12 +00:00
|
|
|
- ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libns.la -rpath ${libdir} \
|
|
|
|
+ ${CC} ${ALL_CFLAGS} ${LDFLAGS} -o libns-pkcs11.la -rpath ${libdir} \
|
2021-03-25 21:17:54 +00:00
|
|
|
-release "${VERSION}" \
|
2020-06-18 02:08:57 +00:00
|
|
|
- ${OBJS} ${ISCLIBS} ${DNSLIBS} @DNS_CRYPTO_LIBS@ ${LIBS}
|
|
|
|
+ ${OBJS} ${ISCLIBS} ${DNSLIBS} @DNS_CRYPTO_PK11_LIBS@ ${LIBS}
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2019-10-18 23:51:12 +00:00
|
|
|
-timestamp: libns.@A@
|
|
|
|
+timestamp: libns-pkcs11.@A@
|
2014-08-21 14:37:44 +00:00
|
|
|
touch timestamp
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
$(SHELL) ${top_srcdir}/mkinstalldirs ${DESTDIR}${libdir}
|
|
|
|
|
|
|
|
install:: timestamp installdirs
|
2019-10-18 23:51:12 +00:00
|
|
|
- ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libns.@A@ \
|
|
|
|
+ ${LIBTOOL_MODE_INSTALL} ${INSTALL_LIBRARY} libns-pkcs11.@A@ \
|
|
|
|
${DESTDIR}${libdir}
|
2014-08-21 14:37:44 +00:00
|
|
|
|
2017-06-15 15:50:41 +00:00
|
|
|
uninstall::
|
2019-10-18 23:51:12 +00:00
|
|
|
- ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libns.@A@
|
|
|
|
+ ${LIBTOOL_MODE_UNINSTALL} rm -f ${DESTDIR}${libdir}/libns-pkcs11.@A@
|
2017-06-15 15:50:41 +00:00
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
clean distclean::
|
2019-10-18 23:51:12 +00:00
|
|
|
- rm -f libns.@A@ timestamp
|
|
|
|
+ rm -f libns-pkcs11.@A@ timestamp
|
|
|
|
diff --git a/lib/ns-pkcs11/tests/Makefile.in b/lib/ns-pkcs11/tests/Makefile.in
|
2021-01-21 10:12:46 +00:00
|
|
|
index 4c3e694..c1b6d99 100644
|
2019-10-18 23:51:12 +00:00
|
|
|
--- a/lib/ns-pkcs11/tests/Makefile.in
|
|
|
|
+++ b/lib/ns-pkcs11/tests/Makefile.in
|
2020-10-23 18:30:49 +00:00
|
|
|
@@ -17,17 +17,17 @@ VERSION=@BIND9_VERSION@
|
|
|
|
|
2021-01-21 10:12:46 +00:00
|
|
|
WRAP_OPTIONS = -Wl,--wrap=isc__nmhandle_detach -Wl,--wrap=isc__nmhandle_attach
|
2019-10-18 23:51:12 +00:00
|
|
|
|
|
|
|
-CINCLUDES = -I. -Iinclude ${NS_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES} \
|
|
|
|
+CINCLUDES = -I. -Iinclude ${NS_PKCS11_INCLUDES} ${DNS_PKCS11_INCLUDES} ${ISC_INCLUDES} \
|
2020-04-27 19:59:25 +00:00
|
|
|
${OPENSSL_CFLAGS} \
|
|
|
|
@CMOCKA_CFLAGS@
|
2019-10-18 23:51:12 +00:00
|
|
|
-CDEFINES = -DTESTS="\"${top_builddir}/lib/ns/tests/\"" -DNAMED_PLUGINDIR=\"${plugindir}\"
|
2020-10-23 18:30:49 +00:00
|
|
|
+CDEFINES = -DTESTS="\"${top_builddir}/lib/ns-pkcs11/tests/\"" -DNAMED_PLUGINDIR=\"${plugindir}\" @USE_PKCS11@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
2020-06-18 02:08:57 +00:00
|
|
|
ISCLIBS = ../../isc/libisc.@A@ @NO_LIBTOOL_ISCLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
ISCDEPLIBS = ../../isc/libisc.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
-DNSLIBS = ../../dns/libdns.@A@ @NO_LIBTOOL_DNSLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
-DNSDEPLIBS = ../../dns/libdns.@A@
|
|
|
|
-NSLIBS = ../libns.@A@
|
|
|
|
-NSDEPLIBS = ../libns.@A@
|
2020-06-18 02:08:57 +00:00
|
|
|
+DNSLIBS = ../../dns-pkcs11/libdns-pkcs11.@A@ @NO_LIBTOOL_DNSLIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
+DNSDEPLIBS = ../../dns-pkcs11/libdns-pkcs11.@A@
|
|
|
|
+NSLIBS = ../libns-pkcs11.@A@
|
|
|
|
+NSDEPLIBS = ../libns-pkcs11.@A@
|
2019-07-23 13:18:22 +00:00
|
|
|
|
|
|
|
LIBS = @LIBS@ @CMOCKA_LIBS@
|
2019-10-18 23:51:12 +00:00
|
|
|
|
2014-08-21 14:37:44 +00:00
|
|
|
diff --git a/make/includes.in b/make/includes.in
|
2021-03-25 21:17:54 +00:00
|
|
|
index b8317d3..b73b0c4 100644
|
2014-08-21 14:37:44 +00:00
|
|
|
--- a/make/includes.in
|
|
|
|
+++ b/make/includes.in
|
2021-03-25 21:17:54 +00:00
|
|
|
@@ -39,3 +39,10 @@ BIND9_INCLUDES = @BIND9_BIND9_BUILDINCLUDE@ \
|
2014-08-21 14:37:44 +00:00
|
|
|
|
|
|
|
TEST_INCLUDES = \
|
|
|
|
-I${top_srcdir}/lib/tests/include
|
|
|
|
+
|
2019-07-23 13:18:22 +00:00
|
|
|
+DNS_PKCS11_INCLUDES = @BIND9_DNS_PKCS11_BUILDINCLUDE@ \
|
2014-08-21 14:37:44 +00:00
|
|
|
+ -I${top_srcdir}/lib/dns-pkcs11/include
|
2019-07-23 13:18:22 +00:00
|
|
|
+
|
|
|
|
+NS_PKCS11_INCLUDES = @BIND9_NS_PKCS11_BUILDINCLUDE@ \
|
|
|
|
+ -I${top_srcdir}/lib/ns-pkcs11/include
|
|
|
|
+
|
2021-01-21 10:12:46 +00:00
|
|
|
--
|
2021-04-29 16:12:16 +00:00
|
|
|
2.26.3
|
2021-01-21 10:12:46 +00:00
|
|
|
|