Skip to content

Commit e1729af

Browse files
committed
Update to SSLHelper changes
1 parent 76c6083 commit e1729af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vertx-mssql-client/src/main/java/io/vertx/mssqlclient/impl/MSSQLSocketConnection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ Future<Void> enableSsl(boolean clientConfigSsl, byte encryptionLevel, MSSQLConne
9595

9696
// 2. Create and set up an SSLHelper and SSLHandler
9797
SSLHelper helper = new SSLHelper(options, options.getApplicationLayerProtocols());
98-
return helper.init(options.getSslOptions(), context).compose(provider -> {
99-
SslHandler sslHandler = provider.createSslHandler(context.owner(), socket.remoteAddress(), null, false);
98+
return helper.buildChannelProvider(options.getSslOptions(), context).compose(provider -> {
99+
SslHandler sslHandler = provider.createClientSslHandler(socket.remoteAddress(), null, false);
100100

101101
// 3. TdsSslHandshakeCodec manages SSL payload encapsulated in TDS packets
102102
TdsSslHandshakeCodec tdsSslHandshakeCodec = new TdsSslHandshakeCodec();

0 commit comments

Comments
 (0)