Skip to content

Commit

Permalink
fix api compat
Browse files Browse the repository at this point in the history
  • Loading branch information
kevmo314 committed Jul 20, 2024
1 parent 5a00701 commit 4a35b06
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package dtls

import (
"context"
"crypto/ecdsa"
"crypto/ed25519"
"crypto/rsa"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4a35b06

Please sign in to comment.