diff options
author | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2023-09-06 11:13:51 +0200 |
---|---|---|
committer | Krzysztof Jackiewicz <k.jackiewicz@samsung.com> | 2023-09-11 06:56:35 +0000 |
commit | 0c1156254b7474d3e47f833e2419205ae89bf893 (patch) | |
tree | b86439e5fc01a56633ecea8db6581776f82e2237 | |
parent | eb222eaa2af11ec9ffefb5d18e6907d396b3d3b5 (diff) | |
download | xmlsec1-0c1156254b7474d3e47f833e2419205ae89bf893.tar.gz xmlsec1-0c1156254b7474d3e47f833e2419205ae89bf893.tar.bz2 xmlsec1-0c1156254b7474d3e47f833e2419205ae89bf893.zip |
Fix PKCS12_parse error handlingtizen_8.0_m2_releaseaccepted/tizen/base/riscv/20231123.094533accepted/tizen/base/20230914.045226accepted/tizen/8.0/base/20231005.045301tizen_8.0_baseaccepted/tizen_base_riscvaccepted/tizen_8.0_base
Change-Id: I5a9be04baef96615937e738a74f187b5be666c50
-rw-r--r-- | src/openssl/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl/app.c b/src/openssl/app.c index aa92b6f9..9b78e2fa 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; } |