Skip to content

Commit

Permalink
Merge pull request #539 from tlsfuzzer/no-brainpool-in-tls1.3
Browse files Browse the repository at this point in the history
don't negotiate legacy brainpool IDs in TLS 1.3
  • Loading branch information
tomato42 authored Jan 7, 2025
2 parents 831c694 + ecc8441 commit 6bd403a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tlslite/tlsconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -4014,7 +4014,10 @@ def _serverGetClientHello(self, settings, private_key, cert_chain,
share_ids = [i.group for i in share.client_shares]
acceptable_ids = [getattr(GroupName, i) for i in
chain(settings.keyShares, settings.eccCurves,
settings.dhGroups)]
settings.dhGroups)
if i not in ("brainpoolP512r1",
"brainpoolP384r1",
"brainpoolP256r1")]
for selected_group in acceptable_ids:
if selected_group in share_ids:
cl_key_share = next(i for i in share.client_shares
Expand Down

0 comments on commit 6bd403a

Please sign in to comment.