summaryrefslogtreecommitdiff
path: root/jstests/ssl
diff options
context:
space:
mode:
authorPatrick Freed <patrick.freed@mongodb.com>2018-11-27 12:01:15 -0500
committerPatrick Freed <patrick.freed@mongodb.com>2018-11-29 16:05:24 -0500
commit53ebb7eb8bef280c5dc189bbb2c162379e7ebd3c (patch)
tree709516c721609c90f2179101b74d5e23a6addf10 /jstests/ssl
parent8e90b018e133641a937b6effdccd8e2d3bd9946a (diff)
downloadmongo-53ebb7eb8bef280c5dc189bbb2c162379e7ebd3c.tar.gz
SERVER-38258 Properly separate TLS 1.3 protocol in tls_enumerator.py
Diffstat (limited to 'jstests/ssl')
-rw-r--r--jstests/ssl/tls_enumerator.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/jstests/ssl/tls_enumerator.py b/jstests/ssl/tls_enumerator.py
index 29b0e81190f..fdc61e24f78 100644
--- a/jstests/ssl/tls_enumerator.py
+++ b/jstests/ssl/tls_enumerator.py
@@ -40,12 +40,17 @@ if __name__ == '__main__':
parser.add_argument('--cert', type=str, help='Path to client certificate')
args = parser.parse_args()
+ # MacOS version of the toolchain does not have python linked with OpenSSL 1.1.1 yet, so we monkey patch this in here
+ if not hasattr(ssl, 'OP_NO_TLSv1_3'):
+ ssl.OP_NO_TLSv1_3 = 0
+
exclude_ops = {
ssl.OP_NO_SSLv2,
ssl.OP_NO_SSLv3,
ssl.OP_NO_TLSv1,
ssl.OP_NO_TLSv1_1,
ssl.OP_NO_TLSv1_2,
+ ssl.OP_NO_TLSv1_3,
}
def exclude_except(op):