]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
priority: do include all the version's signature semantics
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 25 Sep 2017 07:46:32 +0000 (09:46 +0200)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Mon, 19 Feb 2018 14:29:34 +0000 (15:29 +0100)
This resolves issue, which prevented handling certain types
of TLS1.3-only signatures, depending on the order of enabled
protocols.

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

index 6e537bd8c06f4608c405d4c5dbf9a43f807be90e..63d9ebd9cb05f5fbc75f0a9b77d368a5e5bcd9a9 100644 (file)
@@ -1202,14 +1202,10 @@ static int set_ciphersuite_list(gnutls_priority_t priority_cache)
                        tlsmax = version_to_entry(priority_cache->protocol.priority[i]);
                        if (tlsmax)
                                tls_sig_sem |= tlsmax->tls_sig_sem;
-                       if (dtlsmax)
-                               break;
                } else { /* dtls */
                        dtlsmax = version_to_entry(priority_cache->protocol.priority[i]);
                        if (dtlsmax)
                                tls_sig_sem |= dtlsmax->tls_sig_sem;
-                       if (tlsmax)
-                               break;
                }
        }