(_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:
@@ -672,8 +672,16 @@ _krb5_pk_verify_sign(krb5_context context,
|
|||||||
contentType,
|
contentType,
|
||||||
content,
|
content,
|
||||||
&signer_certs);
|
&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;
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
*signer = calloc(1, sizeof(**signer));
|
*signer = calloc(1, sizeof(**signer));
|
||||||
if (*signer == NULL) {
|
if (*signer == NULL) {
|
||||||
|
Reference in New Issue
Block a user