diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-10-22 14:22:57 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-10-25 14:32:43 +0200 |
commit | 7e35458b511f042d9a37d49227b01096c444e575 (patch) | |
tree | c7bffc1a142a8d17851b16ac858024d74af3ba19 /test/evp_extra_test.c | |
parent | e0c5184a56b6580127b39774f9e4e0f2caef696e (diff) |
X509_PUBKEY_dup: Do not just up-ref the EVP_PKEY
We try EVP_PKEY_dup() and if it fails we re-decode it using the
legacy method as provided keys should be duplicable.
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16648)
Diffstat (limited to 'test/evp_extra_test.c')
-rw-r--r-- | test/evp_extra_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/evp_extra_test.c b/test/evp_extra_test.c index 2c604daae9..58c4a590e7 100644 --- a/test/evp_extra_test.c +++ b/test/evp_extra_test.c @@ -2278,7 +2278,7 @@ static int test_X509_PUBKEY_dup(void) if (!TEST_ptr(X509_PUBKEY_get0(xq)) || !TEST_ptr(X509_PUBKEY_get0(xp)) - || !TEST_ptr_eq(X509_PUBKEY_get0(xq), X509_PUBKEY_get0(xp))) + || !TEST_ptr_ne(X509_PUBKEY_get0(xq), X509_PUBKEY_get0(xp))) goto done; X509_PUBKEY_free(xq); |