summaryrefslogtreecommitdiffstats
path: root/providers/implementations/encode_decode
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-06-23 13:53:53 +0200
committerTomas Mraz <tomas@openssl.org>2021-06-24 15:26:56 +0200
commit42fe3e849362e17c8baac3901087e5130eebd5a7 (patch)
tree021d6e6acc83e7d7a41ed25838b306f8bdd59a5f /providers/implementations/encode_decode
parente30b254b63a6947284683f94be5929e7f4b21279 (diff)
epki2pki_decode: passphrase callback failure is fatal error
Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15878)
Diffstat (limited to 'providers/implementations/encode_decode')
-rw-r--r--providers/implementations/encode_decode/decode_epki2pki.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/providers/implementations/encode_decode/decode_epki2pki.c b/providers/implementations/encode_decode/decode_epki2pki.c
index c0d014aef1..66f4ff659d 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;