swiftgemini

[ACTIVE] gemini protocol in swift
git clone git://git.figbert.com/swiftgemini.git
Log | Files | Refs | README

commit d281fb4004df74f9a7fb9e7fde06ae124dee5cf2
parent 0dd32ee9faaf96d9d294faaa14115ea20f2392d8
Author: FIGBERT <figbert@figbert.com>
Date:   Sun, 24 Jul 2022 16:29:20 -0700

Use updated Network TLS APIs

Diffstat:
MSources/SwiftGemini/SwiftGemini.swift | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Sources/SwiftGemini/SwiftGemini.swift b/Sources/SwiftGemini/SwiftGemini.swift @@ -23,7 +23,7 @@ class GeminiRequest { let host = NWEndpoint.Host(self.url.host!) let port = NWEndpoint.Port(integerLiteral: NWEndpoint.Port.IntegerLiteralType(self.url.port ?? 1965)) let opts = NWProtocolTLS.Options() - sec_protocol_options_set_tls_min_version(opts.securityProtocolOptions, .tlsProtocol12) + sec_protocol_options_set_min_tls_protocol_version(opts.securityProtocolOptions, .TLSv12) sec_protocol_options_set_verify_block(opts.securityProtocolOptions, { (sec_protocol_metadata, sec_trust, sec_protocol_verify_complete) in sec_protocol_metadata_copy_peer_public_key(sec_protocol_metadata) sec_protocol_verify_complete(true)