Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joey Salazar
BIND
Commits
c3b8130f
Commit
c3b8130f
authored
Jun 12, 2018
by
Ondřej Surý
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make OpenSSL mandatory
parent
3322e41e
Changes
146
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
146 changed files
with
2233 additions
and
9135 deletions
+2233
-9135
acconfig.h
acconfig.h
+0
-6
aclocal.m4
aclocal.m4
+6
-5
bin/check/Makefile.in
bin/check/Makefile.in
+3
-3
bin/confgen/Makefile.in
bin/confgen/Makefile.in
+2
-2
bin/confgen/ddns-confgen.c
bin/confgen/ddns-confgen.c
+2
-2
bin/confgen/keygen.c
bin/confgen/keygen.c
+0
-6
bin/delv/Makefile.in
bin/delv/Makefile.in
+3
-3
bin/dig/Makefile.in
bin/dig/Makefile.in
+3
-3
bin/dig/dig.c
bin/dig/dig.c
+0
-4
bin/dig/dighost.c
bin/dig/dighost.c
+2
-6
bin/dnssec/Makefile.in
bin/dnssec/Makefile.in
+4
-5
bin/dnssec/dnssec-cds.c
bin/dnssec/dnssec-cds.c
+2
-2
bin/dnssec/dnssec-dsfromkey.c
bin/dnssec/dnssec-dsfromkey.c
+2
-2
bin/dnssec/dnssec-importkey.c
bin/dnssec/dnssec-importkey.c
+2
-2
bin/dnssec/dnssec-keyfromlabel.c
bin/dnssec/dnssec-keyfromlabel.c
+4
-26
bin/dnssec/dnssec-keygen.c
bin/dnssec/dnssec-keygen.c
+3
-25
bin/dnssec/dnssec-revoke.c
bin/dnssec/dnssec-revoke.c
+2
-9
bin/dnssec/dnssec-settime.c
bin/dnssec/dnssec-settime.c
+3
-7
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-signzone.c
+3
-10
bin/dnssec/dnssec-verify.c
bin/dnssec/dnssec-verify.c
+3
-10
bin/named/Makefile.in
bin/named/Makefile.in
+4
-4
bin/named/config.c
bin/named/config.c
+0
-8
bin/named/include/named/globals.h
bin/named/include/named/globals.h
+0
-4
bin/named/main.c
bin/named/main.c
+3
-7
bin/named/server.c
bin/named/server.c
+0
-4
bin/named/unix/Makefile.in
bin/named/unix/Makefile.in
+1
-1
bin/nsupdate/Makefile.in
bin/nsupdate/Makefile.in
+3
-3
bin/nsupdate/nsupdate.c
bin/nsupdate/nsupdate.c
+3
-15
bin/pkcs11/Makefile.in
bin/pkcs11/Makefile.in
+1
-1
bin/pkcs11/OLD-PKCS11-NOTES
bin/pkcs11/OLD-PKCS11-NOTES
+0
-94
bin/pkcs11/pkcs11-destroy.c
bin/pkcs11/pkcs11-destroy.c
+3
-6
bin/pkcs11/pkcs11-keygen.c
bin/pkcs11/pkcs11-keygen.c
+10
-9
bin/pkcs11/pkcs11-list.c
bin/pkcs11/pkcs11-list.c
+3
-6
bin/rndc/Makefile.in
bin/rndc/Makefile.in
+2
-2
bin/rndc/rndc.c
bin/rndc/rndc.c
+8
-10
bin/tests/Makefile.in
bin/tests/Makefile.in
+3
-3
bin/tests/optional/Makefile.in
bin/tests/optional/Makefile.in
+3
-3
bin/tests/optional/hash_test.c
bin/tests/optional/hash_test.c
+0
-4
bin/tests/pkcs11/Makefile.in
bin/tests/pkcs11/Makefile.in
+2
-16
bin/tests/pkcs11/benchmarks/Makefile.in
bin/tests/pkcs11/benchmarks/Makefile.in
+5
-16
bin/tests/pkcs11/benchmarks/create.c
bin/tests/pkcs11/benchmarks/create.c
+1
-5
bin/tests/pkcs11/benchmarks/find.c
bin/tests/pkcs11/benchmarks/find.c
+3
-6
bin/tests/pkcs11/benchmarks/genrsa.c
bin/tests/pkcs11/benchmarks/genrsa.c
+3
-6
bin/tests/pkcs11/benchmarks/login.c
bin/tests/pkcs11/benchmarks/login.c
+3
-6
bin/tests/pkcs11/benchmarks/privrsa.c
bin/tests/pkcs11/benchmarks/privrsa.c
+3
-6
bin/tests/pkcs11/benchmarks/pubrsa.c
bin/tests/pkcs11/benchmarks/pubrsa.c
+3
-6
bin/tests/pkcs11/benchmarks/random.c
bin/tests/pkcs11/benchmarks/random.c
+0
-195
bin/tests/pkcs11/benchmarks/sign.c
bin/tests/pkcs11/benchmarks/sign.c
+3
-6
bin/tests/pkcs11/benchmarks/verify.c
bin/tests/pkcs11/benchmarks/verify.c
+3
-6
bin/tests/pkcs11/pkcs11-hmacmd5.c
bin/tests/pkcs11/pkcs11-hmacmd5.c
+0
-327
bin/tests/pkcs11/pkcs11-md5sum.c
bin/tests/pkcs11/pkcs11-md5sum.c
+0
-230
bin/tests/system/Makefile.in
bin/tests/system/Makefile.in
+1
-1
bin/tests/system/dlzexternal/Makefile.in
bin/tests/system/dlzexternal/Makefile.in
+1
-1
bin/tests/system/dyndb/driver/Makefile.in
bin/tests/system/dyndb/driver/Makefile.in
+2
-2
bin/tests/system/pipelined/Makefile.in
bin/tests/system/pipelined/Makefile.in
+2
-2
bin/tests/system/rndc/Makefile.in
bin/tests/system/rndc/Makefile.in
+1
-1
bin/tests/system/rpz/Makefile.in
bin/tests/system/rpz/Makefile.in
+1
-1
bin/tests/system/rsabigexponent/Makefile.in
bin/tests/system/rsabigexponent/Makefile.in
+2
-2
bin/tests/system/rsabigexponent/bigkey.c
bin/tests/system/rsabigexponent/bigkey.c
+0
-67
bin/tests/system/tkey/Makefile.in
bin/tests/system/tkey/Makefile.in
+2
-2
bin/tests/system/tkey/keycreate.c
bin/tests/system/tkey/keycreate.c
+0
-9
bin/tests/system/tkey/keydelete.c
bin/tests/system/tkey/keydelete.c
+0
-5
bin/tools/Makefile.in
bin/tools/Makefile.in
+3
-3
bin/win32/BINDInstall/BINDInstallDlg.cpp
bin/win32/BINDInstall/BINDInstallDlg.cpp
+0
-2
config.h.in
config.h.in
+28
-37
config.h.win32
config.h.win32
+1
-16
configure
configure
+1089
-1672
configure.in
configure.in
+456
-1127
contrib/dlz/bin/dlzbdb/Makefile.in
contrib/dlz/bin/dlzbdb/Makefile.in
+1
-1
isc-config.sh.in
isc-config.sh.in
+1
-1
lib/bind9/Makefile.in
lib/bind9/Makefile.in
+2
-2
lib/bind9/check.c
lib/bind9/check.c
+1
-14
lib/dns/Makefile.in
lib/dns/Makefile.in
+16
-29
lib/dns/dnssec.c
lib/dns/dnssec.c
+0
-2
lib/dns/dst_api.c
lib/dns/dst_api.c
+12
-57
lib/dns/dst_internal.h
lib/dns/dst_internal.h
+19
-39
lib/dns/dst_parse.c
lib/dns/dst_parse.c
+0
-28
lib/dns/hmac_link.c
lib/dns/hmac_link.c
+0
-4
lib/dns/include/dns/tsig.h
lib/dns/include/dns/tsig.h
+0
-2
lib/dns/openssl_link.c
lib/dns/openssl_link.c
+2
-7
lib/dns/openssldh_link.c
lib/dns/openssldh_link.c
+6
-14
lib/dns/openssldsa_link.c
lib/dns/openssldsa_link.c
+6
-14
lib/dns/opensslecdsa_link.c
lib/dns/opensslecdsa_link.c
+6
-11
lib/dns/openssleddsa_link.c
lib/dns/openssleddsa_link.c
+156
-59
lib/dns/opensslrsa_link.c
lib/dns/opensslrsa_link.c
+4
-46
lib/dns/pkcs11.c
lib/dns/pkcs11.c
+2
-2
lib/dns/pkcs11dh_link.c
lib/dns/pkcs11dh_link.c
+4
-12
lib/dns/pkcs11dsa_link.c
lib/dns/pkcs11dsa_link.c
+4
-12
lib/dns/pkcs11ecdsa_link.c
lib/dns/pkcs11ecdsa_link.c
+4
-9
lib/dns/pkcs11eddsa_link.c
lib/dns/pkcs11eddsa_link.c
+5
-10
lib/dns/pkcs11rsa_link.c
lib/dns/pkcs11rsa_link.c
+4
-54
lib/dns/rcode.c
lib/dns/rcode.c
+4
-23
lib/dns/tests/Makefile.in
lib/dns/tests/Makefile.in
+2
-2
lib/dns/tests/dh_test.c
lib/dns/tests/dh_test.c
+1
-16
lib/dns/tests/rsa_test.c
lib/dns/tests/rsa_test.c
+0
-4
lib/dns/tests/tsig_test.c
lib/dns/tests/tsig_test.c
+0
-12
lib/dns/tkey.c
lib/dns/tkey.c
+1
-18
lib/dns/tsec.c
lib/dns/tsec.c
+0
-2
lib/dns/tsig.c
lib/dns/tsig.c
+2
-10
lib/irs/Makefile.in
lib/irs/Makefile.in
+1
-1
lib/irs/tests/Makefile.in
lib/irs/tests/Makefile.in
+1
-1
lib/isc/Makefile.in
lib/isc/Makefile.in
+6
-8
lib/isc/aes.c
lib/isc/aes.c
+0
-118
lib/isc/entropy.c
lib/isc/entropy.c
+0
-11
lib/isc/hmacmd5.c
lib/isc/hmacmd5.c
+1
-276
lib/isc/hmacsha.c
lib/isc/hmacsha.c
+0
-1214
lib/isc/include/isc/aes.h
lib/isc/include/isc/aes.h
+0
-4
lib/isc/include/isc/hmacmd5.h
lib/isc/include/isc/hmacmd5.h
+1
-24
lib/isc/include/isc/hmacsha.h
lib/isc/include/isc/hmacsha.h
+1
-42
lib/isc/include/isc/md5.h
lib/isc/include/isc/md5.h
+1
-44
lib/isc/include/isc/platform.h.in
lib/isc/include/isc/platform.h.in
+0
-10
lib/isc/include/isc/sha1.h
lib/isc/include/isc/sha1.h
+1
-24
lib/isc/include/isc/sha2.h
lib/isc/include/isc/sha2.h
+1
-75
lib/isc/include/pk11/README.site
lib/isc/include/pk11/README.site
+0
-68
lib/isc/include/pk11/pk11.h
lib/isc/include/pk11/pk11.h
+6
-18
lib/isc/include/pk11/site.h
lib/isc/include/pk11/site.h
+4
-97
lib/isc/md5.c
lib/isc/md5.c
+0
-278
lib/isc/pk11.c
lib/isc/pk11.c
+67
-310
lib/isc/pk11_result.c
lib/isc/pk11_result.c
+6
-10
lib/isc/sha1.c
lib/isc/sha1.c
+2
-344
lib/isc/sha2.c
lib/isc/sha2.c
+0
-1402
lib/isc/tests/Makefile.in
lib/isc/tests/Makefile.in
+2
-2
lib/isc/tests/aes_test.c
lib/isc/tests/aes_test.c
+0
-16
lib/isc/tests/hash_test.c
lib/isc/tests/hash_test.c
+0
-12
lib/isc/unix/Makefile.in
lib/isc/unix/Makefile.in
+3
-3
lib/isc/win32/Makefile.in
lib/isc/win32/Makefile.in
+2
-2
lib/isc/win32/include/isc/platform.h.in
lib/isc/win32/include/isc/platform.h.in
+0
-5
lib/isc/win32/libisc.def.in
lib/isc/win32/libisc.def.in
+0
-2
lib/isc/win32/pk11_api.c
lib/isc/win32/pk11_api.c
+1
-3
lib/isccc/Makefile.in
lib/isccc/Makefile.in
+2
-2
lib/isccc/cc.c
lib/isccc/cc.c
+1
-26
lib/isccfg/Makefile.in
lib/isccfg/Makefile.in
+1
-1
lib/isccfg/tests/Makefile.in
lib/isccfg/tests/Makefile.in
+2
-2
lib/ns/Makefile.in
lib/ns/Makefile.in
+2
-2
lib/ns/client.c
lib/ns/client.c
+0
-2
lib/ns/tests/Makefile.in
lib/ns/tests/Makefile.in
+2
-2
lib/samples/Makefile-postinstall.in
lib/samples/Makefile-postinstall.in
+1
-1
lib/samples/Makefile.in
lib/samples/Makefile.in
+2
-2
m4/ax_check_openssl.m4
m4/ax_check_openssl.m4
+124
-0
m4/libtool.m4
m4/libtool.m4
+0
-0
m4/ltoptions.m4
m4/ltoptions.m4
+0
-0
m4/ltsugar.m4
m4/ltsugar.m4
+0
-0
m4/ltversion.m4
m4/ltversion.m4
+0
-0
m4/lt~obsolete.m4
m4/lt~obsolete.m4
+0
-0
util/copyrights
util/copyrights
+6
-10
win32utils/Configure
win32utils/Configure
+4
-42
No files found.
acconfig.h
View file @
c3b8130f
...
...
@@ -121,12 +121,6 @@ int sigwait(const unsigned int *set, int *sig);
/** define if you have strerror in the C library. */
#undef HAVE_STRERROR
/* Define if OpenSSL includes DSA support */
#undef HAVE_OPENSSL_DSA
/* Define if you have getpassphrase in the C library. */
#undef HAVE_GETPASSPHRASE
/* Define to the length type used by the socket API (socklen_t, size_t, int). */
#undef ISC_SOCKADDR_LEN_T
...
...
aclocal.m4
View file @
c3b8130f
...
...
@@ -288,8 +288,9 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
AS_VAR_IF([$1], [""], [$5], [$4])dnl
])dnl PKG_CHECK_VAR
m4_include([libtool.m4/libtool.m4])
m4_include([libtool.m4/ltoptions.m4])
m4_include([libtool.m4/ltsugar.m4])
m4_include([libtool.m4/ltversion.m4])
m4_include([libtool.m4/lt~obsolete.m4])
m4_include([m4/ax_check_openssl.m4])
m4_include([m4/libtool.m4])
m4_include([m4/ltoptions.m4])
m4_include([m4/ltsugar.m4])
m4_include([m4/ltversion.m4])
m4_include([m4/lt~obsolete.m4])
bin/check/Makefile.in
View file @
c3b8130f
...
...
@@ -16,15 +16,15 @@ VERSION=@BIND9_VERSION@
@BIND9_MAKE_INCLUDES@
CINCLUDES
=
${NS_INCLUDES}
${BIND9_INCLUDES}
${DNS_INCLUDES}
${ISCCFG_INCLUDES}
\
${ISC_INCLUDES}
@
DST_OPENSSL_INC
@
${ISC_INCLUDES}
@
OPENSSL_INCLUDES
@
CDEFINES
=
-DNAMED_CONFFILE
=
\"
${sysconfdir}
/named.conf
\"
CWARNINGS
=
DNSLIBS
=
../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCCFGLIBS
=
../../lib/isccfg/libisccfg.@A@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
ISC_
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
ISC_
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
BIND9LIBS
=
../../lib/bind9/libbind9.@A@
NSLIBS
=
../../lib/ns/libns.@A@
...
...
bin/confgen/Makefile.in
View file @
c3b8130f
...
...
@@ -27,8 +27,8 @@ CWARNINGS =
ISCCFGLIBS
=
../../lib/isccfg/libisccfg.@A@
ISCCCLIBS
=
../../lib/isccc/libisccc.@A@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
ISC_
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
ISC_
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
DNSLIBS
=
../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
BIND9LIBS
=
../../lib/bind9/libbind9.@A@
...
...
bin/confgen/ddns-confgen.c
View file @
c3b8130f
...
...
@@ -36,7 +36,7 @@
#include <isc/time.h>
#include <isc/util.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -102,7 +102,7 @@ main(int argc, char **argv) {
int
len
=
0
;
int
ch
;
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/confgen/keygen.c
View file @
c3b8130f
...
...
@@ -43,10 +43,8 @@
const
char
*
alg_totext
(
dns_secalg_t
alg
)
{
switch
(
alg
)
{
#ifndef PK11_MD5_DISABLE
case
DST_ALG_HMACMD5
:
return
"hmac-md5"
;
#endif
case
DST_ALG_HMACSHA1
:
return
"hmac-sha1"
;
case
DST_ALG_HMACSHA224
:
...
...
@@ -71,10 +69,8 @@ alg_fromtext(const char *name) {
if
(
strncasecmp
(
p
,
"hmac-"
,
5
)
==
0
)
p
=
&
name
[
5
];
#ifndef PK11_MD5_DISABLE
if
(
strcasecmp
(
p
,
"md5"
)
==
0
)
return
DST_ALG_HMACMD5
;
#endif
if
(
strcasecmp
(
p
,
"sha1"
)
==
0
)
return
DST_ALG_HMACSHA1
;
if
(
strcasecmp
(
p
,
"sha224"
)
==
0
)
...
...
@@ -124,9 +120,7 @@ generate_key(isc_mem_t *mctx, dns_secalg_t alg, int keysize,
dst_key_t
*
key
=
NULL
;
switch
(
alg
)
{
#ifndef PK11_MD5_DISABLE
case
DST_ALG_HMACMD5
:
#endif
case
DST_ALG_HMACSHA1
:
case
DST_ALG_HMACSHA224
:
case
DST_ALG_HMACSHA256
:
...
...
bin/delv/Makefile.in
View file @
c3b8130f
...
...
@@ -16,7 +16,7 @@ VERSION=@BIND9_VERSION@
@BIND9_MAKE_INCLUDES@
CINCLUDES
=
-I
${srcdir}
/include
${DNS_INCLUDES}
${ISC_INCLUDES}
\
${IRS_INCLUDES}
${ISCCFG_INCLUDES}
@
DST_OPENSSL_INC
@
${IRS_INCLUDES}
${ISCCFG_INCLUDES}
@
OPENSSL_INCLUDES
@
CDEFINES
=
-DVERSION
=
\"
${VERSION}
\"
\
-DSYSCONFDIR
=
\"
${sysconfdir}
\"
...
...
@@ -24,8 +24,8 @@ CWARNINGS =
ISCCFGLIBS
=
../../lib/isccfg/libisccfg.@A@
DNSLIBS
=
../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
ISC_
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
ISC_
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
IRSLIBS
=
../../lib/irs/libirs.@A@
ISCCFGDEPLIBS
=
../../lib/isccfg/libisccfg.@A@
...
...
bin/dig/Makefile.in
View file @
c3b8130f
...
...
@@ -19,7 +19,7 @@ READLINE_LIB = @READLINE_LIB@
CINCLUDES
=
-I
${srcdir}
/include
${DNS_INCLUDES}
\
${BIND9_INCLUDES}
${ISC_INCLUDES}
\
${IRS_INCLUDES}
${ISCCFG_INCLUDES}
@LIBIDN2_CFLAGS@ @
DST_OPENSSL_INC
@
${IRS_INCLUDES}
${ISCCFG_INCLUDES}
@LIBIDN2_CFLAGS@ @
OPENSSL_INCLUDES
@
CDEFINES
=
-DVERSION
=
\"
${VERSION}
\"
CWARNINGS
=
...
...
@@ -27,8 +27,8 @@ CWARNINGS =
ISCCFGLIBS
=
../../lib/isccfg/libisccfg.@A@
DNSLIBS
=
../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
BIND9LIBS
=
../../lib/bind9/libbind9.@A@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
ISC_
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
ISC_
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
IRSLIBS
=
../../lib/irs/libirs.@A@
ISCCFGDEPLIBS
=
../../lib/isccfg/libisccfg.@A@
...
...
bin/dig/dig.c
View file @
c3b8130f
...
...
@@ -1771,11 +1771,7 @@ dash_option(char *option, char *next, dig_lookup_t **lookup,
ptr
=
ptr2
;
ptr2
=
ptr3
;
}
else
{
#ifndef PK11_MD5_DISABLE
hmacname
=
DNS_TSIG_HMACMD5_NAME
;
#else
hmacname
=
DNS_TSIG_HMACSHA256_NAME
;
#endif
digestbits
=
0
;
}
/* XXXONDREJ: FIXME */
...
...
bin/dig/dighost.c
View file @
c3b8130f
...
...
@@ -84,7 +84,7 @@
#include <dig/dig.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -1032,14 +1032,12 @@ parse_hmac(const char *hmac) {
digestbits
=
0
;
#ifndef PK11_MD5_DISABLE
if
(
strcasecmp
(
buf
,
"hmac-md5"
)
==
0
)
{
hmacname
=
DNS_TSIG_HMACMD5_NAME
;
}
else
if
(
strncasecmp
(
buf
,
"hmac-md5-"
,
9
)
==
0
)
{
hmacname
=
DNS_TSIG_HMACMD5_NAME
;
digestbits
=
parse_bits
(
&
buf
[
9
],
"digest-bits [0..128]"
,
128
);
}
else
#endif
if
(
strcasecmp
(
buf
,
"hmac-sha1"
)
==
0
)
{
hmacname
=
DNS_TSIG_HMACSHA1_NAME
;
digestbits
=
0
;
...
...
@@ -1153,11 +1151,9 @@ setup_file_key(void) {
}
switch
(
dst_key_alg
(
dstkey
))
{
#ifndef PK11_MD5_DISABLE
case
DST_ALG_HMACMD5
:
hmacname
=
DNS_TSIG_HMACMD5_NAME
;
break
;
#endif
case
DST_ALG_HMACSHA1
:
hmacname
=
DNS_TSIG_HMACSHA1_NAME
;
break
;
...
...
@@ -1314,7 +1310,7 @@ setup_libs(void) {
debug
(
"setup_libs()"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/Makefile.in
View file @
c3b8130f
...
...
@@ -15,15 +15,14 @@ VERSION=@BIND9_VERSION@
@BIND9_MAKE_INCLUDES@
CINCLUDES
=
${DNS_INCLUDES}
${ISC_INCLUDES}
@
DST_OPENSSL_INC
@
CINCLUDES
=
${DNS_INCLUDES}
${ISC_INCLUDES}
@
OPENSSL_INCLUDES
@
CDEFINES
=
-DVERSION
=
\"
${VERSION}
\"
@USE_PKCS11@ @PKCS11_ENGINE@
\
-DPK11_LIB_LOCATION
=
\"
@PKCS11_PROVIDER@
\"
CDEFINES
=
-DVERSION
=
\"
${VERSION}
\"
CWARNINGS
=
DNSLIBS
=
../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
ISC_
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
ISC_
OPENSSL_LIBS@
ISCLIBS
=
../../lib/isc/libisc.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
ISCNOSYMLIBS
=
../../lib/isc/libisc-nosymtbl.@A@ @
OPENSSL_LDFLAGS@ @
OPENSSL_LIBS@
DNSDEPLIBS
=
../../lib/dns/libdns.@A@
ISCDEPLIBS
=
../../lib/isc/libisc.@A@
...
...
bin/dnssec/dnssec-cds.c
View file @
c3b8130f
...
...
@@ -53,7 +53,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -1147,7 +1147,7 @@ main(int argc, char *argv[]) {
fatal
(
"out of memory"
);
}
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/dnssec-dsfromkey.c
View file @
c3b8130f
...
...
@@ -41,7 +41,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -370,7 +370,7 @@ main(int argc, char **argv) {
if
(
result
!=
ISC_R_SUCCESS
)
fatal
(
"out of memory"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/dnssec-importkey.c
View file @
c3b8130f
...
...
@@ -41,7 +41,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -310,7 +310,7 @@ main(int argc, char **argv) {
if
(
result
!=
ISC_R_SUCCESS
)
fatal
(
"out of memory"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/dnssec-keyfromlabel.c
View file @
c3b8130f
...
...
@@ -37,7 +37,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -69,12 +69,9 @@ usage(void) {
fprintf
(
stderr
,
" -3: use NSEC3-capable algorithm
\n
"
);
fprintf
(
stderr
,
" -c class (default: IN)
\n
"
);
fprintf
(
stderr
,
" -E <engine>:
\n
"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
" path to PKCS#11 provider library "
"(default is %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
fprintf
(
stderr
,
" name of an OpenSSL engine to use "
"(default is
\"
pkcs11
\"
)
\n
"
);
#else
fprintf
(
stderr
,
" name of an OpenSSL engine to use
\n
"
);
#endif
...
...
@@ -124,11 +121,7 @@ main(int argc, char **argv) {
const
char
*
directory
=
NULL
;
const
char
*
predecessor
=
NULL
;
dst_key_t
*
prevkey
=
NULL
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
char
*
classname
=
NULL
;
char
*
endp
;
dst_key_t
*
key
=
NULL
;
...
...
@@ -173,7 +166,7 @@ main(int argc, char **argv) {
RUNTIME_CHECK
(
isc_mem_create
(
0
,
0
,
&
mctx
)
==
ISC_R_SUCCESS
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
@@ -388,20 +381,10 @@ main(int argc, char **argv) {
}
if
(
strcasecmp
(
algname
,
"RSA"
)
==
0
)
{
#ifndef PK11_MD5_DISABLE
fprintf
(
stderr
,
"The use of RSA (RSAMD5) is not "
"recommended.
\n
If you still wish to "
"use RSA (RSAMD5) please specify "
"
\"
-a RSAMD5
\"\n
"
);
#else
fprintf
(
stderr
,
"The use of RSA (RSAMD5) was disabled
\n
"
);
if
(
freeit
!=
NULL
)
free
(
freeit
);
return
(
1
);
}
else
if
(
strcasecmp
(
algname
,
"RSAMD5"
)
==
0
)
{
fprintf
(
stderr
,
"The use of RSAMD5 was disabled
\n
"
);
#endif
if
(
freeit
!=
NULL
)
free
(
freeit
);
return
(
1
);
...
...
@@ -512,11 +495,6 @@ main(int argc, char **argv) {
alg
=
dst_key_alg
(
prevkey
);
flags
=
dst_key_flags
(
prevkey
);
#ifdef PK11_MD5_DISABLE
if
(
alg
==
DST_ALG_RSAMD5
)
fatal
(
"Key %s uses disabled RSAMD5"
,
predecessor
);
#endif
dst_key_format
(
prevkey
,
keystr
,
sizeof
(
keystr
));
dst_key_getprivateformat
(
prevkey
,
&
major
,
&
minor
);
if
(
major
!=
DST_MAJOR_VERSION
||
minor
<
DST_MINOR_VERSION
)
...
...
@@ -606,7 +584,7 @@ main(int argc, char **argv) {
/* associate the key */
ret
=
dst_key_fromlabel
(
name
,
alg
,
flags
,
protocol
,
rdclass
,
#if
HAV
E_PKCS11
#if
US
E_PKCS11
"pkcs11"
,
#else
engine
,
...
...
bin/dnssec/dnssec-keygen.c
View file @
c3b8130f
...
...
@@ -52,7 +52,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -106,12 +106,9 @@ usage(void) {
fprintf
(
stderr
,
" -c <class>: (default: IN)
\n
"
);
fprintf
(
stderr
,
" -d <digest bits> (0 => max, default)
\n
"
);
fprintf
(
stderr
,
" -E <engine>:
\n
"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
" path to PKCS#11 provider library "
"(default is %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
fprintf
(
stderr
,
" name of an OpenSSL engine to use "
"(default is
\"
pkcs11
\"
)
\n
"
);
#else
fprintf
(
stderr
,
" name of an OpenSSL engine to use
\n
"
);
#endif
...
...
@@ -216,11 +213,7 @@ main(int argc, char **argv) {
dst_key_t
*
prevkey
=
NULL
;
isc_buffer_t
buf
;
isc_log_t
*
log
=
NULL
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
dns_rdataclass_t
rdclass
;
int
options
=
DST_TYPE_PRIVATE
|
DST_TYPE_PUBLIC
;
int
dbits
=
0
;
...
...
@@ -247,7 +240,7 @@ main(int argc, char **argv) {
if
(
argc
==
1
)
usage
();
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
@@ -523,23 +516,12 @@ main(int argc, char **argv) {
}
if
(
strcasecmp
(
algname
,
"RSA"
)
==
0
)
{
#ifndef PK11_MD5_DISABLE
fprintf
(
stderr
,
"The use of RSA (RSAMD5) is not "
"recommended.
\n
If you still wish to "
"use RSA (RSAMD5) please specify "
"
\"
-a RSAMD5
\"\n
"
);
INSIST
(
freeit
==
NULL
);
return
(
1
);
#else
fprintf
(
stderr
,
"The use of RSA (RSAMD5) was disabled
\n
"
);
INSIST
(
freeit
==
NULL
);
return
(
1
);
}
else
if
(
strcasecmp
(
algname
,
"RSAMD5"
)
==
0
)
{
fprintf
(
stderr
,
"The use of RSAMD5 was disabled
\n
"
);
INSIST
(
freeit
==
NULL
);
return
(
1
);
#endif
}
else
{
r
.
base
=
algname
;
r
.
length
=
strlen
(
algname
);
...
...
@@ -552,10 +534,6 @@ main(int argc, char **argv) {
}
}
#ifdef PK11_MD5_DISABLE
INSIST
((
alg
!=
DNS_KEYALG_RSAMD5
));
#endif
if
(
!
dst_algorithm_supported
(
alg
))
{
fatal
(
"unsupported algorithm: %d"
,
alg
);
}
...
...
bin/dnssec/dnssec-revoke.c
View file @
c3b8130f
...
...
@@ -30,7 +30,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -49,12 +49,9 @@ usage(void) {
fprintf
(
stderr
,
"Usage:
\n
"
);
fprintf
(
stderr
,
" %s [options] keyfile
\n\n
"
,
program
);
fprintf
(
stderr
,
"Version: %s
\n
"
,
VERSION
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
" -E engine: specify PKCS#11 provider "
"(default: %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
fprintf
(
stderr
,
" -E engine: specify OpenSSL engine "
"(default
\"
pkcs11
\"
)
\n
"
);
#else
fprintf
(
stderr
,
" -E engine: specify OpenSSL engine
\n
"
);
#endif
...
...
@@ -75,11 +72,7 @@ usage(void) {
int
main
(
int
argc
,
char
**
argv
)
{
isc_result_t
result
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
char
const
*
filename
=
NULL
;
char
*
dir
=
NULL
;
char
newname
[
1024
],
oldname
[
1024
];
...
...
bin/dnssec/dnssec-settime.c
View file @
c3b8130f
...
...
@@ -33,7 +33,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -53,7 +53,7 @@ usage(void) {
fprintf
(
stderr
,
" %s [options] keyfile
\n\n
"
,
program
);
fprintf
(
stderr
,
"Version: %s
\n
"
,
VERSION
);
fprintf
(
stderr
,
"General options:
\n
"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
" -E engine: specify PKCS#11 provider "
"(default: %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
...
...
@@ -127,11 +127,7 @@ printtime(dst_key_t *key, int type, const char *tag, isc_boolean_t epoch,
int
main
(
int
argc
,
char
**
argv
)
{
isc_result_t
result
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
const
char
*
filename
=
NULL
;
char
*
directory
=
NULL
;
char
newname
[
1024
];
...
...
@@ -178,7 +174,7 @@ main(int argc, char **argv) {
setup_logging
(
mctx
,
&
log
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/dnssec-signzone.c
View file @
c3b8130f
...
...
@@ -80,7 +80,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -3131,12 +3131,9 @@ usage(void) {
fprintf
(
stderr
,
"verify generated signatures
\n
"
);
fprintf
(
stderr
,
"
\t
-c class (IN)
\n
"
);
fprintf
(
stderr
,
"
\t
-E engine:
\n
"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
"
\t\t
path to PKCS#11 provider library "
"(default is %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
fprintf
(
stderr
,
"
\t\t
name of an OpenSSL engine to use "
"(default is
\"
pkcs11
\"
)
\n
"
);
#else
fprintf
(
stderr
,
"
\t\t
name of an OpenSSL engine to use
\n
"
);
#endif
...
...
@@ -3229,11 +3226,7 @@ main(int argc, char *argv[]) {
dns_dnsseckey_t
*
key
;
isc_result_t
result
,
vresult
;
isc_log_t
*
log
=
NULL
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
isc_boolean_t
free_output
=
ISC_FALSE
;
int
tempfilelen
=
0
;
dns_rdataclass_t
rdclass
;
...
...
@@ -3286,7 +3279,7 @@ main(int argc, char *argv[]) {
if
(
result
!=
ISC_R_SUCCESS
)
fatal
(
"out of memory"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/dnssec/dnssec-verify.c
View file @
c3b8130f
...
...
@@ -62,7 +62,7 @@
#include <dst/dst.h>
#if
HAV
E_PKCS11
#if
US
E_PKCS11
#include <pk11/result.h>
#endif
...
...
@@ -150,12 +150,9 @@ usage(void) {
fprintf
(
stderr
,
"
\t\t
file format of input zonefile (text)
\n
"
);
fprintf
(
stderr
,
"
\t
-c class (IN)
\n
"
);
fprintf
(
stderr
,
"
\t
-E engine:
\n
"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
fprintf
(
stderr
,
"
\t\t
path to PKCS#11 provider library "
"(default is %s)
\n
"
,
PK11_LIB_LOCATION
);
#elif defined(USE_PKCS11)
fprintf
(
stderr
,
"
\t\t
name of an OpenSSL engine to use "
"(default is
\"
pkcs11
\"
)
\n
"
);
#else
fprintf
(
stderr
,
"
\t\t
name of an OpenSSL engine to use
\n
"
);
#endif
...
...
@@ -171,11 +168,7 @@ main(int argc, char *argv[]) {
char
*
inputformatstr
=
NULL
;
isc_result_t
result
;
isc_log_t
*
log
=
NULL
;
#ifdef USE_PKCS11
const
char
*
engine
=
PKCS11_ENGINE
;
#else
const
char
*
engine
=
NULL
;
#endif
char
*
classname
=
NULL
;
dns_rdataclass_t
rdclass
;
char
*
endp
;
...
...
@@ -212,7 +205,7 @@ main(int argc, char *argv[]) {
if
(
result
!=
ISC_R_SUCCESS
)
fatal
(
"out of memory"
);
#if
HAV
E_PKCS11
#if
US
E_PKCS11
pk11_result_register
();
#endif
dns_result_register
();
...
...
bin/named/Makefile.in
View file @
c3b8130f
...
...
@@ -46,17 +46,17 @@ CINCLUDES = -I${srcdir}/include -I${srcdir}/unix/include -I. \
${NS_INCLUDES}
${DNS_INCLUDES}
\
${BIND9_INCLUDES}
${ISCCFG_INCLUDES}
${ISCCC_INCLUDES}
\