mirror of
https://github.com/chris2511/xca.git
synced 2026-09-14 11:06:19 +05:00
fix PKCS#12 import for OpenSSL 1.0.0
This commit is contained in:
parent
36037ac388
commit
9ddb2ffa3b
@ -56,12 +56,12 @@ pki_pkcs12::pki_pkcs12(const QString fname, pem_password_cb *cb)
|
||||
}
|
||||
PKCS12_parse(pkcs12, pass, &mykey, &mycert, &certstack);
|
||||
int error = ERR_peek_error();
|
||||
if (error) {
|
||||
if (ERR_GET_REASON(error) == PKCS12_R_MAC_VERIFY_FAILURE) {
|
||||
ign_openssl_error();
|
||||
PKCS12_free(pkcs12);
|
||||
throw errorEx(getClassName(), tr("The supplied password was wrong (%1)").arg(ERR_reason_error_string(error)));
|
||||
}
|
||||
openssl_error();
|
||||
ign_openssl_error();
|
||||
if (mycert) {
|
||||
if (mycert->aux && mycert->aux->alias) {
|
||||
alias = asn1ToQString(mycert->aux->alias);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user