]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
epki2pki_decode: passphrase callback failure is fatal error
authorTomas Mraz <tomas@openssl.org>
Wed, 23 Jun 2021 11:53:53 +0000 (13:53 +0200)
committerTomas Mraz <tomas@openssl.org>
Thu, 24 Jun 2021 13:26:56 +0000 (15:26 +0200)
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15878)

providers/implementations/encode_decode/decode_epki2pki.c

index c0d014aef13e877197db2ab42e620331c57a6d38..66f4ff659d2c88bb9f0bc91be7baada0be3d0cbb 100644 (file)
@@ -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;