]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warning in libnss compile, nss_buf2dsa is not used without DSA.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Oct 2020 12:31:55 +0000 (14:31 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 9 Oct 2020 12:31:55 +0000 (14:31 +0200)
doc/Changelog
validator/val_secalgo.c

index 035d040a932e086f4add45dd89e66b1a5e8b3b60..e98876fca08b43d8533d49aa5243298d98e3602d 100644 (file)
@@ -1,6 +1,7 @@
 9 October 2020: Wouter
        - Fix dnstap socket and the chroot not applied properly to the dnstap
          socket path.
+       - Fix warning in libnss compile, nss_buf2dsa is not used without DSA.
 
 8 October 2020: Wouter
        - Tag for 1.12.0 release.
index 65bca8b69d6e8a0a7f9800692a04e27520c7eb2e..15cccf017b4edb41913cc104060145f558d7598b 100644 (file)
@@ -990,6 +990,7 @@ static SECKEYPublicKey* nss_buf2ecdsa(unsigned char* key, size_t len, int algo)
        return pk;
 }
 
+#if defined(USE_DSA) && defined(USE_SHA1)
 static SECKEYPublicKey* nss_buf2dsa(unsigned char* key, size_t len)
 {
        SECKEYPublicKey* pk;
@@ -1050,6 +1051,7 @@ static SECKEYPublicKey* nss_buf2dsa(unsigned char* key, size_t len)
        }
        return pk;
 }
+#endif /* USE_DSA && USE_SHA1 */
 
 static SECKEYPublicKey* nss_buf2rsa(unsigned char* key, size_t len)
 {