]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
alert: GNUTLS_E_PK_INVALID_PUBKEY maps to GNUTLS_A_ILLEGAL_PARAMETER
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 2 Mar 2017 16:53:55 +0000 (17:53 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Tue, 7 Mar 2017 21:06:46 +0000 (22:06 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/alert.c

index 0aa92e314ea7e92cb28c816c575d783c3e8bbbc7..8b262b7b43c73028e5c35a33913aba560ac934e7 100644 (file)
@@ -212,6 +212,7 @@ int gnutls_error_to_alert(int err, int *level)
                break;
        case GNUTLS_E_RECEIVED_ILLEGAL_PARAMETER:
        case GNUTLS_E_ILLEGAL_SRP_USERNAME:
+       case GNUTLS_E_PK_INVALID_PUBKEY:
                ret = GNUTLS_A_ILLEGAL_PARAMETER;
                _level = GNUTLS_AL_FATAL;
                break;