MCPcopy Index your code
hub / github.com/XTLS/REALITY / updateBinders

Method updateBinders

handshake_messages.go:404–416  ·  view source on GitHub ↗

updateBinders updates the m.pskBinders field. The supplied binders must have the same length as the current m.pskBinders.

(pskBinders [][]byte)

Source from the content-addressed store, hash-verified

402// updateBinders updates the m.pskBinders field. The supplied binders must have
403// the same length as the current m.pskBinders.
404func (m *clientHelloMsg) updateBinders(pskBinders [][]byte) error {
405 if len(pskBinders) != len(m.pskBinders) {
406 return errors.New("tls: internal error: pskBinders length mismatch")
407 }
408 for i := range m.pskBinders {
409 if len(pskBinders[i]) != len(m.pskBinders[i]) {
410 return errors.New("tls: internal error: pskBinders length mismatch")
411 }
412 }
413 m.pskBinders = pskBinders
414
415 return nil
416}
417
418func (m *clientHelloMsg) unmarshal(data []byte) bool {
419 *m = clientHelloMsg{original: data}

Callers 1

computeAndUpdatePSKFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected