Set TLSStream default to use TLS1.2 only.
This commit is contained in:
parent
3d74c5cdd2
commit
1789328748
|
@ -416,7 +416,7 @@ proc newTLSClientAsyncStream*(rsource: AsyncStreamReader,
|
||||||
wsource: AsyncStreamWriter,
|
wsource: AsyncStreamWriter,
|
||||||
serverName: string,
|
serverName: string,
|
||||||
bufferSize = SSL_BUFSIZE_BIDI,
|
bufferSize = SSL_BUFSIZE_BIDI,
|
||||||
minVersion = TLSVersion.TLS11,
|
minVersion = TLSVersion.TLS12,
|
||||||
maxVersion = TLSVersion.TLS12,
|
maxVersion = TLSVersion.TLS12,
|
||||||
flags: set[TLSFlags] = {}): TLSAsyncStream =
|
flags: set[TLSFlags] = {}): TLSAsyncStream =
|
||||||
## Create new TLS asynchronous stream for outbound (client) connections
|
## Create new TLS asynchronous stream for outbound (client) connections
|
||||||
|
|
Loading…
Reference in New Issue