(hx509_cms_unenvelope): try to save the error string from
find_CMSIdentifier so we have one more bit of information what went wrong. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18041 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -300,11 +300,12 @@ hx509_cms_unenvelope(hx509_context context,
|
||||
if (ret == 0)
|
||||
break;
|
||||
cert = NULL;
|
||||
hx509_clear_error_string(context);
|
||||
}
|
||||
|
||||
if (cert == NULL) {
|
||||
ret = HX509_CMS_NO_RECIPIENT_CERTIFICATE;
|
||||
hx509_set_error_string(context, 0, ret,
|
||||
hx509_set_error_string(context, HX509_ERROR_APPEND, ret,
|
||||
"No private key decrypted the transfer key");
|
||||
goto out;
|
||||
}
|
||||
|
Reference in New Issue
Block a user