(ctx context.Context, c *Conn, clientHello *clientHelloMsg)
| 985 | } |
| 986 | |
| 987 | func 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 | } |
no test coverage detected
searching dependent graphs…