Skip to content

Commit

Permalink
fix stubby patch
Browse files Browse the repository at this point in the history
* told you about the specifics of the modification, so I modified the
contents of the patch accordingly.
  (getdnsapi/getdns#457 (comment))
  • Loading branch information
kometchtech committed Feb 25, 2020
1 parent e9e1239 commit 554e35a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stubby/val_secalgo.c.patch
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
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_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);
Expand All @@ -14,7 +14,7 @@
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_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);

0 comments on commit 554e35a

Please sign in to comment.