MCPcopy Index your code
hub / github.com/XTLS/Go / clientHelloInfo

Function clientHelloInfo

handshake_server.go:857–875  ·  view source on GitHub ↗
(ctx context.Context, c *Conn, clientHello *clientHelloMsg)

Source from the content-addressed store, hash-verified

855}
856
857func clientHelloInfo(ctx context.Context, c *Conn, clientHello *clientHelloMsg) *ClientHelloInfo {
858 supportedVersions := clientHello.supportedVersions
859 if len(clientHello.supportedVersions) == 0 {
860 supportedVersions = supportedVersionsFromMax(clientHello.vers)
861 }
862
863 return &ClientHelloInfo{
864 CipherSuites: clientHello.cipherSuites,
865 ServerName: clientHello.serverName,
866 SupportedCurves: clientHello.supportedCurves,
867 SupportedPoints: clientHello.supportedPoints,
868 SignatureSchemes: clientHello.supportedSignatureAlgorithms,
869 SupportedProtos: clientHello.alpnProtocols,
870 SupportedVersions: supportedVersions,
871 Conn: c.conn,
872 config: c.config,
873 ctx: ctx,
874 }
875}

Callers 3

pickCertificateMethod · 0.85
readClientHelloMethod · 0.85
processClientHelloMethod · 0.85

Calls 1

supportedVersionsFromMaxFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…