From 0c1156254b7474d3e47f833e2419205ae89bf893 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Wed, 6 Sep 2023 11:13:51 +0200 Subject: [PATCH] Fix PKCS12_parse error handling Change-Id: I5a9be04baef96615937e738a74f187b5be666c50 --- src/openssl/app.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openssl/app.c b/src/openssl/app.c index aa92b6f..9b78e2f 100644 --- a/src/openssl/app.c +++ b/src/openssl/app.c @@ -629,7 +629,7 @@ xmlSecOpenSSLAppPkcs12LoadBIO(BIO* bio, const char *pwd, } ret = PKCS12_parse(p12, pwd, &pKey, &cert, &chain); - if(ret < 0) { + if(ret != 1) { xmlSecOpenSSLError("PKCS12_parse", NULL); goto done; } -- 2.7.4