]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fix build with nettle-3.5 90/head
authorVladimír Čunát <v@cunat.cz>
Wed, 2 Oct 2019 18:04:03 +0000 (20:04 +0200)
committerVladimír Čunát <v@cunat.cz>
Wed, 2 Oct 2019 18:05:03 +0000 (20:05 +0200)
https://git.lysator.liu.se/nettle/nettle/commit/8bf4747d9

validator/val_secalgo.c

index 0613316c908843d7cd440e3a1ec99d6ff29f542c..ff7739bcf4e7489d9c18aec4e6678b74e6ae46a5 100644 (file)
@@ -1725,7 +1725,7 @@ _verify_nettle_ecdsa(sldns_buffer* buf, unsigned int digest_size, unsigned char*
                {
                        uint8_t digest[SHA256_DIGEST_SIZE];
                        mpz_t x, y;
-                       nettle_ecc_point_init(&pubkey, &nettle_secp_256r1);
+                       nettle_ecc_point_init(&pubkey, nettle_get_secp_256r1());
                        nettle_mpz_init_set_str_256_u(x, SHA256_DIGEST_SIZE, key);
                        nettle_mpz_init_set_str_256_u(y, SHA256_DIGEST_SIZE, key+SHA256_DIGEST_SIZE);
                        nettle_mpz_set_str_256_u(signature.r, SHA256_DIGEST_SIZE, sigblock);
@@ -1742,7 +1742,7 @@ _verify_nettle_ecdsa(sldns_buffer* buf, unsigned int digest_size, unsigned char*
                {
                        uint8_t digest[SHA384_DIGEST_SIZE];
                        mpz_t x, y;
-                       nettle_ecc_point_init(&pubkey, &nettle_secp_384r1);
+                       nettle_ecc_point_init(&pubkey, nettle_get_secp_384r1());
                        nettle_mpz_init_set_str_256_u(x, SHA384_DIGEST_SIZE, key);
                        nettle_mpz_init_set_str_256_u(y, SHA384_DIGEST_SIZE, key+SHA384_DIGEST_SIZE);
                        nettle_mpz_set_str_256_u(signature.r, SHA384_DIGEST_SIZE, sigblock);