diff --git a/coap-mbedtls/build.gradle.kts b/coap-mbedtls/build.gradle.kts index 1c94637b..4db763fd 100644 --- a/coap-mbedtls/build.gradle.kts +++ b/coap-mbedtls/build.gradle.kts @@ -6,8 +6,8 @@ description = "coap-mbedtls" dependencies { api(project(":coap-core")) - api("io.github.open-coap:kotlin-mbedtls:1.28.0") - api("io.github.open-coap:kotlin-mbedtls-netty:1.28.0") + api("io.github.open-coap:kotlin-mbedtls:1.29.1") + api("io.github.open-coap:kotlin-mbedtls-netty:1.29.1") testImplementation(project(":coap-netty")) diff --git a/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MbedtlsNettyTest.java b/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MbedtlsNettyTest.java index ba3bfdc7..7829a6d8 100644 --- a/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MbedtlsNettyTest.java +++ b/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MbedtlsNettyTest.java @@ -242,7 +242,7 @@ private Bootstrap createClientBootstrap(InetSocketAddress destinationAddress) { .handler(new ChannelInitializer() { @Override protected void initChannel(DatagramChannel ch) { - ch.pipeline().addFirst("DTLS", new DtlsClientHandshakeChannelHandler(clientConf.newContext(destinationAddress), destinationAddress, SessionWriter.NO_OPS)); + ch.pipeline().addFirst("DTLS", new DtlsClientHandshakeChannelHandler(clientConf, SessionWriter.NO_OPS)); } }); } diff --git a/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MultithreadedMbedtlsNettyTest.java b/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MultithreadedMbedtlsNettyTest.java index 22c5a8f7..d965a560 100644 --- a/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MultithreadedMbedtlsNettyTest.java +++ b/coap-mbedtls/src/test/java/org/opencoap/transport/mbedtls/MultithreadedMbedtlsNettyTest.java @@ -114,7 +114,7 @@ private String connectAndReadCurrentThreadName() throws IOException, CoapExcepti .handler(new ChannelInitializer() { @Override protected void initChannel(DatagramChannel ch) { - ch.pipeline().addFirst("DTLS", new DtlsClientHandshakeChannelHandler(clientConf.newContext(serverAddress), serverAddress, SessionWriter.NO_OPS)); + ch.pipeline().addFirst("DTLS", new DtlsClientHandshakeChannelHandler(clientConf, SessionWriter.NO_OPS)); } });