attach the QUIC version to context returned by ClientHelloInfo.Context (#3721)

This commit is contained in:
Marten Seemann
2023-03-27 00:26:14 +11:00
committed by GitHub
parent 11f493381f
commit 41ddaa0262
5 changed files with 106 additions and 176 deletions

View File

@@ -3,7 +3,6 @@ package handshake
import (
"errors"
"io"
"net"
"time"
"github.com/quic-go/quic-go/internal/protocol"
@@ -93,10 +92,3 @@ type CryptoSetup interface {
Get0RTTSealer() (LongHeaderSealer, error)
Get1RTTSealer() (ShortHeaderSealer, error)
}
// ConnWithVersion is the connection used in the ClientHelloInfo.
// It can be used to determine the QUIC version in use.
type ConnWithVersion interface {
net.Conn
GetQUICVersion() protocol.VersionNumber
}