From 04032a6d4f488185b369ae6f933a26696bc04604 Mon Sep 17 00:00:00 2001 From: Dmitry Belyavskiy Date: Thu, 19 Oct 2023 14:47:19 +0200 Subject: [PATCH] Attempt to fix tests against OpenSSL <= 3.0.7 --- regress/unittests/sshkey/test_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/regress/unittests/sshkey/test_file.c b/regress/unittests/sshkey/test_file.c index f4999563a852..3c7a9a62798e 100644 --- a/regress/unittests/sshkey/test_file.c +++ b/regress/unittests/sshkey/test_file.c @@ -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);