STORE: Make try_decode_PrivateKey() ENGINE aware
authorRichard Levitte <levitte@openssl.org>
Tue, 19 May 2020 13:42:07 +0000 (15:42 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 20 May 2020 19:14:05 +0000 (21:14 +0200)
commitb84439b06a1b9a7bfb47e230b70a6d3ee46e8a19
tree46074fd15d353d844b181ccd94155a628e45db60
parente637d47c9122d74d4f3a40a8cbe867de29468ba3
STORE: Make try_decode_PrivateKey() ENGINE aware

This function only considered the built-in and application
EVP_PKEY_ASN1_METHODs, and is now amended with a loop that goes
through all loaded engines, using whatever table of methods they each
have.

Fixes #11861

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11872)
crypto/store/loader_file.c