TEST: Adapt test/endecoder_test.c

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/13248)
This commit is contained in:
Richard Levitte 2020-10-26 16:38:40 +01:00
parent eb2f1b81a3
commit a5cc661645

View File

@ -235,7 +235,9 @@ static int decode_EVP_PKEY_prov(void **object, void *encoded, long encoded_len,
if (!TEST_ptr(dctx = OSSL_DECODER_CTX_new_by_EVP_PKEY(&testpkey, if (!TEST_ptr(dctx = OSSL_DECODER_CTX_new_by_EVP_PKEY(&testpkey,
testtype, testtype,
NULL,
keytype, keytype,
selection,
NULL, NULL)) NULL, NULL))
|| (pass != NULL || (pass != NULL
&& !OSSL_DECODER_CTX_set_passphrase(dctx, upass, strlen(pass))) && !OSSL_DECODER_CTX_set_passphrase(dctx, upass, strlen(pass)))