Skip to content

Commit

Permalink
Attempt to fix tests against OpenSSL <= 3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
beldmit committed Oct 19, 2023
1 parent 1626e1d commit 04032a6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion regress/unittests/sshkey/test_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,8 @@ sshkey_file_tests(void)
a = load_bignum("ecdsa_1.param.priv");
b = load_bignum("ecdsa_1.param.pub");
ec = EVP_PKEY_get0_EC_KEY(k1->pkey);
#if (OPENSSL_VERSION_NUMBER < 0x30000000L)
/* OpenSSL 3.0.7 and below export EC pub key in compressed form */
#if (OPENSSL_VERSION_NUMBER < 0x30000080L)
c = EC_POINT_point2bn(EC_KEY_get0_group(ec),
EC_KEY_get0_public_key(ec), POINT_CONVERSION_UNCOMPRESSED,
NULL, NULL);
Expand Down

0 comments on commit 04032a6

Please sign in to comment.