Skip to content

Commit

Permalink
check if the client adverties the uncompressed point format extension
Browse files Browse the repository at this point in the history
  • Loading branch information
gstarovo committed Aug 21, 2024
1 parent a7874c2 commit 3ba9071
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tlslite/keyexchange.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,11 @@ def makeServerKeyExchange(self, sigHash=None):
ext_negotiated = ECPointFormat.uncompressed
ext_c = self.clientHello.getExtension(ExtensionType.ec_point_formats)
ext_s = self.serverHello.getExtension(ExtensionType.ec_point_formats)
if ext_c:
if ECPointFormat.uncompressed not in ext_c.formats:
raise TLSIllegalParameterException(
"The client does not advertise "
"the uncompressed point format extension.")
if ext_c and ext_s:
try:
ext_negotiated = next((i for i in ext_c.formats \
Expand Down

0 comments on commit 3ba9071

Please sign in to comment.