From: Tomas Mraz Date: Wed, 23 Jun 2021 11:53:53 +0000 (+0200) Subject: epki2pki_decode: passphrase callback failure is fatal error X-Git-Tag: openssl-3.0.0-beta2~219 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42fe3e849362e17c8baac3901087e5130eebd5a7;p=thirdparty%2Fopenssl.git epki2pki_decode: passphrase callback failure is fatal error Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15878) --- diff --git a/providers/implementations/encode_decode/decode_epki2pki.c b/providers/implementations/encode_decode/decode_epki2pki.c index c0d014aef13..66f4ff659d2 100644 --- a/providers/implementations/encode_decode/decode_epki2pki.c +++ b/providers/implementations/encode_decode/decode_epki2pki.c @@ -90,6 +90,7 @@ static int epki2pki_decode(void *vctx, OSSL_CORE_BIO *cin, int selection, if (!pw_cb(pbuf, sizeof(pbuf), &plen, NULL, pw_cbarg)) { ERR_raise(ERR_LIB_PROV, PROV_R_UNABLE_TO_GET_PASSPHRASE); + ok = 0; } else { const ASN1_OCTET_STRING *oct; unsigned char *new_der = NULL;