Ensure pkey_set_type handles ENGINE references correctly
authorMatt Caswell <matt@openssl.org>
Fri, 15 Oct 2021 15:23:31 +0000 (16:23 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 19 Oct 2021 15:20:00 +0000 (16:20 +0100)
commitf7d6868d0d48fedd5d9daad0c3e0cbcaef423ff3
tree416a704d06dda98c467c5e26ec32030a5cd5c260
parenta0cbc2d222743fc4ffd276b97bd5f8aeacf01122
Ensure pkey_set_type handles ENGINE references correctly

pkey_set_type should not consume the ENGINE references that may be
passed to it.

Fixes #16757

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16846)
crypto/evp/p_lib.c