(certs []*x509.Certificate)
| 176 | } |
| 177 | |
| 178 | func certificatesToBytesSlice(certs []*x509.Certificate) [][]byte { |
| 179 | s := make([][]byte, 0, len(certs)) |
| 180 | for _, c := range certs { |
| 181 | s = append(s, c.Raw) |
| 182 | } |
| 183 | return s |
| 184 | } |
| 185 | |
| 186 | // ParseSessionState parses a [SessionState] encoded by [SessionState.Bytes]. |
| 187 | func ParseSessionState(data []byte) (*SessionState, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…