TLS1.2 by default (#110)

closes #107
This commit is contained in:
Tanguy 2022-05-18 08:51:45 +02:00 committed by GitHub
parent 14d852e0d4
commit 5311a6e0b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -125,7 +125,7 @@ proc connect*(
address: TransportAddress, address: TransportAddress,
version = HttpVersion11, version = HttpVersion11,
tlsFlags: set[TLSFlags] = {}, tlsFlags: set[TLSFlags] = {},
tlsMinVersion = TLSVersion.TLS11, tlsMinVersion = TLSVersion.TLS12,
tlsMaxVersion = TLSVersion.TLS12, tlsMaxVersion = TLSVersion.TLS12,
hostName = ""): Future[T] {.async.} = hostName = ""): Future[T] {.async.} =
@ -167,7 +167,7 @@ proc connect*(
host: string, host: string,
version = HttpVersion11, version = HttpVersion11,
tlsFlags: set[TLSFlags] = {}, tlsFlags: set[TLSFlags] = {},
tlsMinVersion = TLSVersion.TLS11, tlsMinVersion = TLSVersion.TLS12,
tlsMaxVersion = TLSVersion.TLS12, tlsMaxVersion = TLSVersion.TLS12,
hostName = ""): Future[T] hostName = ""): Future[T]
{.async, raises: [Defect, HttpError].} = {.async, raises: [Defect, HttpError].} =