diff options
author | Richard Levitte <levitte@openssl.org> | 2021-09-01 17:34:38 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2021-09-05 21:42:54 +0200 |
commit | 4bc33f53266225b6a431b8a94a7a6efb5aeee8f1 (patch) | |
tree | 13dbfa4a0710a722a3f272f0c5bf8cf45b2b48da /test | |
parent | 0616afca39adb2ac61a36bc7179a0163d1ee48d0 (diff) |
Adjust test/endecoder_test.c
The protected tests need to specify the structure EncryptedPrivateKeyInfo
rather than PrivateKeyInfo, since that's the outermost structure.
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16466)
(cherry picked from commit 602bfb8b98125f6745cd40dbc5fce9614ae5e418)
Diffstat (limited to 'test')
-rw-r--r-- | test/endecode_test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/endecode_test.c b/test/endecode_test.c index d28ea3c812..1698867b40 100644 --- a/test/endecode_test.c +++ b/test/endecode_test.c @@ -703,7 +703,7 @@ static int test_protected_via_DER(const char *type, EVP_PKEY *key) return test_encode_decode(__FILE__, __LINE__, type, key, OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS, - "DER", "PrivateKeyInfo", + "DER", "EncryptedPrivateKeyInfo", pass, pass_cipher, encode_EVP_PKEY_prov, decode_EVP_PKEY_prov, test_mem, check_protected_PKCS8_DER, @@ -726,7 +726,7 @@ static int test_protected_via_PEM(const char *type, EVP_PKEY *key) return test_encode_decode(__FILE__, __LINE__, type, key, OSSL_KEYMGMT_SELECT_KEYPAIR | OSSL_KEYMGMT_SELECT_DOMAIN_PARAMETERS, - "PEM", "PrivateKeyInfo", + "PEM", "EncryptedPrivateKeyInfo", pass, pass_cipher, encode_EVP_PKEY_prov, decode_EVP_PKEY_prov, test_text, check_protected_PKCS8_PEM, |