File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ let package = Package(
14
14
] ,
15
15
dependencies: [
16
16
. package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.32.0 " ) ,
17
- . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.12.0 " ) ,
17
+ . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.14.1 " ) ,
18
18
. package ( url: " https://github.com/apple/swift-crypto.git " , from: " 1.0.0 " ) ,
19
19
. package ( url: " https://github.com/apple/swift-metrics.git " , from: " 2.0.0 " ) ,
20
20
. package ( url: " https://github.com/apple/swift-log.git " , from: " 1.4.0 " ) ,
Original file line number Diff line number Diff line change @@ -680,7 +680,7 @@ final class PostgresNIOTests: XCTestCase {
680
680
var conn : PostgresConnection ?
681
681
XCTAssertNoThrow ( conn = try PostgresConnection . connect (
682
682
to: SocketAddress . makeAddressResolvingHost ( " elmer.db.elephantsql.com " , port: 5432 ) ,
683
- tlsConfiguration: . forClient ( certificateVerification : . none ) ,
683
+ tlsConfiguration: . makeClientConfiguration ( ) ,
684
684
serverHostname: " elmer.db.elephantsql.com " ,
685
685
on: eventLoop
686
686
) . wait ( ) )
@@ -709,7 +709,7 @@ final class PostgresNIOTests: XCTestCase {
709
709
XCTAssertThrowsError (
710
710
try PostgresConnection . connect (
711
711
to: SocketAddress . makeAddressResolvingHost ( " elmer.db.elephantsql.com " , port: 5432 ) ,
712
- tlsConfiguration: . forClient ( certificateVerification : . fullVerification ) ,
712
+ tlsConfiguration: . makeClientConfiguration ( ) ,
713
713
serverHostname: " 34.228.73.168 " ,
714
714
on: eventLoop
715
715
) . wait ( )
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ class PSQLChannelHandlerTests: XCTestCase {
34
34
35
35
func testEstablishSSLCallbackIsCalledIfSSLIsSupported( ) {
36
36
var config = self . testConnectionConfiguration ( )
37
- config. tlsConfiguration = . forClient ( certificateVerification : . none )
37
+ config. tlsConfiguration = . makeClientConfiguration ( )
38
38
var addSSLCallbackIsHit = false
39
39
let handler = PSQLChannelHandler ( authentification: config. authentication) { channel in
40
40
addSSLCallbackIsHit = true
@@ -72,7 +72,7 @@ class PSQLChannelHandlerTests: XCTestCase {
72
72
73
73
func testSSLUnsupportedClosesConnection( ) {
74
74
var config = self . testConnectionConfiguration ( )
75
- config. tlsConfiguration = . forClient ( )
75
+ config. tlsConfiguration = . makeClientConfiguration ( )
76
76
77
77
let handler = PSQLChannelHandler ( authentification: config. authentication) { channel in
78
78
XCTFail ( " This callback should never be exectuded " )
You can’t perform that action at this time.
0 commit comments