(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:
Love Hörnquist Åstrand
2006-09-06 21:50:18 +00:00
parent 2d40fa34d7
commit d7b6342d34

View File

@@ -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;
}