]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fix the build when EdDSA algorithms are not available
authorOndřej Surý <ondrej@sury.org>
Thu, 19 Jul 2018 15:29:05 +0000 (11:29 -0400)
committerOndřej Surý <ondrej@sury.org>
Thu, 19 Jul 2018 17:17:38 +0000 (13:17 -0400)
lib/dns/dst_internal.h
lib/dns/openssleddsa_link.c

index 784e3a9023c3a7a85f105728f2d2a99a78512346..b99e2720f052cfcdc139518f58058648b9ebedd0 100644 (file)
@@ -229,7 +229,9 @@ isc_result_t dst__opensslrsa_init(struct dst_func **funcp,
 isc_result_t dst__openssldsa_init(struct dst_func **funcp);
 isc_result_t dst__openssldh_init(struct dst_func **funcp);
 isc_result_t dst__opensslecdsa_init(struct dst_func **funcp);
+#if HAVE_OPENSSL_ED25519 || HAVE_OPENSSL_ED448
 isc_result_t dst__openssleddsa_init(struct dst_func **funcp);
+#endif /* HAVE_OPENSSL_ED25519 || HAVE_OPENSSL_ED448 */
 #endif /* USE_OPENSSL */
 #if USE_PKCS11
 isc_result_t dst__pkcs11rsa_init(struct dst_func **funcp);
index c95948a6080999dffc527d8612f03b1ca6cc70ca..56e44705a3c5f50d07c46b4c34b45f02501d2ca6 100644 (file)
@@ -13,6 +13,8 @@
 
 #if !USE_PKCS11
 
+#if HAVE_OPENSSL_ED25519 || HAVE_OPENSSL_ED448
+
 #include <isc/mem.h>
 #include <isc/safe.h>
 #include <isc/sha2.h>
@@ -764,6 +766,8 @@ dst__openssleddsa_init(dst_func_t **funcp) {
        return (ISC_R_SUCCESS);
 }
 
+#endif /* HAVE_OPENSSL_ED25519 || HAVE_OPENSSL_ED448 */
+
 #endif /* !USE_PKCS11 */
 
 /*! \file */