MCPcopy
hub / github.com/XTLS/REALITY / clientHelloInfo

Function clientHelloInfo

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

Source from the content-addressed store, hash-verified

985}
986
987func clientHelloInfo(ctx context.Context, c *Conn, clientHello *clientHelloMsg) *ClientHelloInfo {
988 supportedVersions := clientHello.supportedVersions
989 if len(clientHello.supportedVersions) == 0 {
990 supportedVersions = supportedVersionsFromMax(clientHello.vers)
991 }
992
993 return &ClientHelloInfo{
994 CipherSuites: clientHello.cipherSuites,
995 ServerName: clientHello.serverName,
996 SupportedCurves: clientHello.supportedCurves,
997 SupportedPoints: clientHello.supportedPoints,
998 SignatureSchemes: clientHello.supportedSignatureAlgorithms,
999 SupportedProtos: clientHello.alpnProtocols,
1000 SupportedVersions: supportedVersions,
1001 Extensions: clientHello.extensions,
1002 Conn: c.conn,
1003 config: c.config,
1004 ctx: ctx,
1005 }
1006}

Callers 4

pickCertificateMethod · 0.85
sendServerParametersMethod · 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…