From 8575497059f4138f0754d52545452785cd8a6182 Mon Sep 17 00:00:00 2001 From: Johannes Weiss Date: Tue, 15 Feb 2022 20:04:00 +0000 Subject: [PATCH] SSLProtocol tls* deprecations --- .../NIOTransportServices/TLSConfiguration.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/AsyncHTTPClient/NIOTransportServices/TLSConfiguration.swift b/Sources/AsyncHTTPClient/NIOTransportServices/TLSConfiguration.swift index 71f45381e..e20f52634 100644 --- a/Sources/AsyncHTTPClient/NIOTransportServices/TLSConfiguration.swift +++ b/Sources/AsyncHTTPClient/NIOTransportServices/TLSConfiguration.swift @@ -39,6 +39,10 @@ extension TLSVersion { extension TLSVersion { /// return as SSL protocol + @available(macOS, deprecated: 10.15, message: "legacy functionality") + @available(iOS, deprecated: 13.0, message: "legacy functionality") + @available(tvOS, deprecated: 13.0, message: "legacy functionality") + @available(watchOS, deprecated: 6.0, message: "legacy functionality") var sslProtocol: SSLProtocol { switch self { case .tlsv1: