]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
select_sign_algorithm: check KX type only on pre-TLS1.3
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Tue, 17 Oct 2017 06:32:09 +0000 (08:32 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:36 +0000 (15:29 +0100)
That, when selecting a certificate under TLS1.3, considers
the negotiated signature algorithms for compatibility with the
certificate to be selected.

Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/auth/cert.c

index a82a43d3b42498b9c5f53d32173697528395c684..9b9cd39c3ca0babf8eeb435a379252812447d810 100644 (file)
@@ -1254,7 +1254,7 @@ int select_sign_algorithm(gnutls_session_t session,
        gnutls_sign_algorithm_t algo;
        const version_entry_st *ver = get_version(session);
 
-       if (_gnutls_kx_encipher_type(cs->kx_algorithm) != CIPHER_SIGN)
+       if (!ver->tls13_sem && _gnutls_kx_encipher_type(cs->kx_algorithm) != CIPHER_SIGN)
                return 0;
 
        if (!_gnutls_version_has_selectable_sighash(ver)) {