]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
EVP: fix evp_keymgmt_util_match so that it actually tries cross export the other...
authormanison <manison@users.noreply.github.com>
Wed, 12 Jan 2022 19:53:48 +0000 (20:53 +0100)
committerTomas Mraz <tomas@openssl.org>
Fri, 14 Jan 2022 16:15:58 +0000 (17:15 +0100)
Fixes #17482

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17487)

crypto/evp/keymgmt_lib.c

index 2a73e9a2be9485ec0cfe380cb5dd98117b7ba781..05c4e9795746f5e32b342b563db8ec3259201204 100644 (file)
@@ -370,7 +370,7 @@ int evp_keymgmt_util_match(EVP_PKEY *pk1, EVP_PKEY *pk2, int selection)
          * but also to determine if we should attempt a cross export
          * the other way.  There's no point doing it both ways.
          */
-        int ok = 1;
+        int ok = 0;
 
         /* Complex case, where the keymgmt differ */
         if (keymgmt1 != NULL