From 257fd17ea43163c02313dbbbd0f5a56a8255157e Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Wed, 9 Apr 2025 14:32:48 +0200 Subject: [PATCH] fixup! wolfSSL_EVP_PKEY_cmp: only compare the public keys --- tests/api.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/api.c b/tests/api.c index 0774b4aba..5d48d9543 100644 --- a/tests/api.c +++ b/tests/api.c @@ -25852,7 +25852,7 @@ static int test_wolfSSL_CTX_add_extra_chain_cert(void) pkey = X509_get_pubkey(ecX509); ExpectNotNull(pkey); /* current ECC key is 256 bit (32 bytes) */ - ExpectIntEQ(EVP_PKEY_size(pkey), 72); + ExpectIntGE(EVP_PKEY_size(pkey), 72); X509_free(ecX509); ecX509 = NULL; @@ -40935,7 +40935,7 @@ static int test_wolfSSL_CTX_ctrl(void) #endif ExpectNotNull(pkey = X509_get_pubkey(ecX509)); /* current ECC key is 256 bit (32 bytes) */ - ExpectIntEQ(EVP_PKEY_size(pkey), 72); + ExpectIntGE(EVP_PKEY_size(pkey), 72); X509_free(ecX509); EVP_PKEY_free(pkey);