Changeset: a49f9501500c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/a49f9501500c
Modified Files:
clients/mapilib/Tests/tlstester.py
Branch: monetdburl
Log Message:
Fix tlstester, it accepted TLSv1.3 in a context where it shouldn't
diffs (23 lines):
diff --git a/clients/mapilib/Tests/tlstester.py
b/clients/mapilib/Tests/tlstester.py
--- a/clients/mapilib/Tests/tlstester.py
+++ b/clients/mapilib/Tests/tlstester.py
@@ -398,7 +398,9 @@ def make_context(allowtlsv12 = False):
opts = ssl.OP_NO_SSLv2
opts |= ssl.OP_NO_SSLv3
opts |= ssl.OP_NO_TLSv1
- if not allowtlsv12:
+ if allowtlsv12:
+ opts |= ssl.OP_NO_TLSv1_3
+ else:
opts |= ssl.OP_NO_TLSv1_2
context = SSLContext(protocol)
@@ -488,7 +490,7 @@ class MapiHandler(socketserver.BaseReque
log.debug(f"port '{self.name}': trying to set up TLS")
try:
self.conn = self.context.wrap_socket(self.request,
server_side=True)
- log.info(f"port '{self.name}': TLS handshake succeeded")
+ log.info(f"port '{self.name}': TLS handshake succeeded:
{self.conn.version()}")
except SSLError as e:
log.info(f"port '{self.name}': TLS handshake failed: {e}")
return
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]