updateBinders updates the m.pskBinders field. The supplied binders must have the same length as the current m.pskBinders.
(pskBinders [][]byte)
| 402 | // updateBinders updates the m.pskBinders field. The supplied binders must have |
| 403 | // the same length as the current m.pskBinders. |
| 404 | func (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 | |
| 418 | func (m *clientHelloMsg) unmarshal(data []byte) bool { |
| 419 | *m = clientHelloMsg{original: data} |
no outgoing calls
no test coverage detected