Skip to content

Commit

Permalink
Merge cfe112c into 403539b
Browse files Browse the repository at this point in the history
  • Loading branch information
NoName115 committed Apr 23, 2018
2 parents 403539b + cfe112c commit d1c74f5
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tlslite/tlsconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2523,10 +2523,18 @@ def _serverGetClientHello(self, settings, certChain, verifierDB,
# TODO when TLS 1.3 is final, check the client hello random for
# downgrade too

scheme = self._pickServerKeyExchangeSig(settings,
clientHello,
certChain,
version)
scheme = None
if version >= (3, 4):
try:
scheme = self._pickServerKeyExchangeSig(settings,
clientHello,
certChain,
version)
except TLSHandshakeFailure as alert:
for result in self._sendError(
AlertDescription.handshake_failure,
str(alert)):
yield result

#Check if there's intersection between supported curves by client and
#server
Expand Down

0 comments on commit d1c74f5

Please sign in to comment.