From 17893287484a3c2c82fb6030a55890048a4f5387 Mon Sep 17 00:00:00 2001 From: cheatfate Date: Wed, 10 Feb 2021 18:15:59 +0200 Subject: [PATCH] Set TLSStream default to use TLS1.2 only. --- chronos/streams/tlsstream.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/streams/tlsstream.nim b/chronos/streams/tlsstream.nim index c5c23818..eda191fa 100644 --- a/chronos/streams/tlsstream.nim +++ b/chronos/streams/tlsstream.nim @@ -416,7 +416,7 @@ proc newTLSClientAsyncStream*(rsource: AsyncStreamReader, wsource: AsyncStreamWriter, serverName: string, bufferSize = SSL_BUFSIZE_BIDI, - minVersion = TLSVersion.TLS11, + minVersion = TLSVersion.TLS12, maxVersion = TLSVersion.TLS12, flags: set[TLSFlags] = {}): TLSAsyncStream = ## Create new TLS asynchronous stream for outbound (client) connections