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