From 4a35b063c493a7613e1e6e923665bce486b4834c Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Fri, 19 Jul 2024 20:27:37 -0400 Subject: [PATCH] fix api compat --- config.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config.go b/config.go index f9793029..dd3a0b11 100644 --- a/config.go +++ b/config.go @@ -4,6 +4,7 @@ package dtls import ( + "context" "crypto/ecdsa" "crypto/ed25519" "crypto/rsa" @@ -117,6 +118,12 @@ type Config struct { LoggerFactory logging.LoggerFactory + // ConnectContextMaker is no longer used. It is kept for compatibility + // reasons and will be removed in a future release. + // + // Deprecated: Use the context parameter in [HandshakeContext] instead. + ConnectContextMaker func() (context.Context, func()) + // MTU is the length at which handshake messages will be fragmented to // fit within the maximum transmission unit (default is 1200 bytes) MTU int