(ctx context.Context)
| 68 | } |
| 69 | |
| 70 | func TLSSessionIDFromContext(ctx context.Context) (TLSSessionID, bool) { |
| 71 | val := ctx.Value(connKey{}) |
| 72 | conn, ok := val.(net.Conn) |
| 73 | if !ok { |
| 74 | return TLSSessionID{}, false |
| 75 | } |
| 76 | return GetTLSSessionID(conn) |
| 77 | } |
| 78 | |
| 79 | func EnableTLSCookies(cfg *tls.Config, logger *clog.CondLogger) *tls.Config { |
| 80 | getConfig := func(chi *tls.ClientHelloInfo) (*tls.Config, error) { |
no test coverage detected