ENCODER PROV: Add encoders with EncryptedPrivateKeyInfo output
authorRichard Levitte <levitte@openssl.org>
Wed, 1 Sep 2021 20:18:45 +0000 (22:18 +0200)
committerRichard Levitte <levitte@openssl.org>
Sun, 5 Sep 2021 19:34:51 +0000 (21:34 +0200)
commit0195cdd28fde7d0897e368fdcd4e92509425faad
treeb22d7db04ad75c38f1287fd263669f0922682571
parent602bfb8b98125f6745cd40dbc5fce9614ae5e418
ENCODER PROV: Add encoders with EncryptedPrivateKeyInfo output

Since EncryptedPrivateKeyInfo is a recognised structure, it's
reasonable to think that someone might want to specify it.

To be noted is that if someone specifies the structure PrivateKeyInfo
but has also passed a passphrase callback, the result will still
become a EncryptedPrivateKeyInfo structure.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16466)
providers/encoders.inc
providers/implementations/encode_decode/encode_key2any.c
providers/implementations/include/prov/implementations.h