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

Function certificatesToBytesSlice

ticket.go:178–184  ·  view source on GitHub ↗
(certs []*x509.Certificate)

Source from the content-addressed store, hash-verified

176}
177
178func 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].
187func ParseSessionState(data []byte) (*SessionState, error) {

Callers 1

BytesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…