summaryrefslogtreecommitdiff
path: root/lib/alert.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-28 08:40:32 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-03-28 09:30:13 +0200
commit211aec736078e3f775e11c5db812111c809d1842 (patch)
tree679f866af87dc47ef4c2e626d2acc6fa4a878aff /lib/alert.c
parent89efd1231c2eea9ba174d59b692eccbcc9f2edff (diff)
downloadgnutls-211aec736078e3f775e11c5db812111c809d1842.tar.gz
alert: return GNUTLS_A_BAD_CERTIFICATE on GNUTLS_E_PK_SIG_VERIFY_FAILED
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib/alert.c')
-rw-r--r--lib/alert.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/alert.c b/lib/alert.c
index c22b84bd36..61a14a070b 100644
--- a/lib/alert.c
+++ b/lib/alert.c
@@ -234,6 +234,7 @@ int gnutls_error_to_alert(int err, int *level)
case GNUTLS_E_ASN1_DER_OVERFLOW:
case GNUTLS_E_CERTIFICATE_ERROR:
case GNUTLS_E_CERTIFICATE_VERIFICATION_ERROR:
+ case GNUTLS_E_PK_SIG_VERIFY_FAILED:
ret = GNUTLS_A_BAD_CERTIFICATE;
_level = GNUTLS_AL_FATAL;
break;