projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
epki2pki_decode: passphrase callback failure is fatal error
[openssl.git]
/
providers
/
implementations
/
encode_decode
/
decode_epki2pki.c
diff --git
a/providers/implementations/encode_decode/decode_epki2pki.c
b/providers/implementations/encode_decode/decode_epki2pki.c
index c0d014aef13e877197db2ab42e620331c57a6d38..66f4ff659d2c88bb9f0bc91be7baada0be3d0cbb 100644
(file)
--- 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;