Skip to content

Commit

Permalink
Fix test failures by using the latest versions of TLS in the TLS prox…
Browse files Browse the repository at this point in the history
…y tests. (#306)
  • Loading branch information
reivilibre committed Jun 10, 2022
1 parent 0ff8ffc commit 712c30c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/306.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix test failures by using the latest versions of TLS in the TLS proxy tests.
2 changes: 1 addition & 1 deletion tests/twisted_test_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def __init__(self, sanlist):
self._cert_file = create_test_cert_file(sanlist)

def serverConnectionForTLS(self, tlsProtocol):
ctx = SSL.Context(SSL.TLSv1_METHOD)
ctx = SSL.Context(SSL.SSLv23_METHOD)
ctx.use_certificate_file(self._cert_file)
ctx.use_privatekey_file(get_test_key_file())
return Connection(ctx, None)

0 comments on commit 712c30c

Please sign in to comment.