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>
Fri, 22 May 2020 09:29:47 +0000 (11:29 +0200)
commit2f4023e88962d3375ff30ad5011a310dacf0ad3f
tree80240a65483948619d38a59165cb558039ec9328
parent176eb406691f14d560cf7619365830a4d033ee28
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

(cherry picked from commit b84439b06a1b9a7bfb47e230b70a6d3ee46e8a19)

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