summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-24 15:11:31 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-11-25 10:37:07 +0100
commit423839f0c7aab239a7c2e135d5b1cbaa27cd4d5b (patch)
tree137a632c82df27162884ed7f161bab38ff8106d5
parentf08198bfb50f8991299eb8a531519ea8f83c29ad (diff)
downloadgnutls-423839f0c7aab239a7c2e135d5b1cbaa27cd4d5b.tar.gz
pkcs7: on data verification failure log the signer
-rw-r--r--lib/x509/pkcs7.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/x509/pkcs7.c b/lib/x509/pkcs7.c
index f412df5cd5..43053bdbf5 100644
--- a/lib/x509/pkcs7.c
+++ b/lib/x509/pkcs7.c
@@ -1254,6 +1254,7 @@ int gnutls_pkcs7_verify(gnutls_pkcs7_t pkcs7,
gnutls_x509_crt_verify_data3(signer, info.algo, vdata, vdata_size,
&sigdata, &info.sig, flags);
if (ret < 0) {
+ _gnutls_cert_log("failed struct verification with", signer);
gnutls_assert();
}
gnutls_x509_crt_deinit(signer);