(_krb5_pk_verify_sign): catch the error string from the hx509 lib

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18036 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-09-06 18:53:39 +00:00
parent 9bf4e18d6d
commit c360ec2e50

View File

@@ -672,8 +672,16 @@ _krb5_pk_verify_sign(krb5_context context,
contentType,
content,
&signer_certs);
if (ret)
if (ret) {
char *s = hx509_get_error_string(id->hx509ctx, ret);
if (s) {
krb5_set_error_string(context,
"CMS verify signed failed with %s", s);
free(s);
} else
krb5_clear_error_string(context);
return ret;
}
*signer = calloc(1, sizeof(**signer));
if (*signer == NULL) {