MCPcopy Create free account
hub / github.com/XTLS/REALITY / buildRetryConfigList

Function buildRetryConfigList

ech.go:653–669  ·  view source on GitHub ↗
(keys []EncryptedClientHelloKey)

Source from the content-addressed store, hash-verified

651}
652
653func buildRetryConfigList(keys []EncryptedClientHelloKey) ([]byte, error) {
654 var atLeastOneRetryConfig bool
655 var retryBuilder cryptobyte.Builder
656 retryBuilder.AddUint16LengthPrefixed(func(b *cryptobyte.Builder) {
657 for _, c := range keys {
658 if !c.SendAsRetry {
659 continue
660 }
661 atLeastOneRetryConfig = true
662 b.AddBytes(c.Config)
663 }
664 })
665 if !atLeastOneRetryConfig {
666 return nil, nil
667 }
668 return retryBuilder.Bytes()
669}

Callers 1

sendServerParametersMethod · 0.85

Calls 1

BytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…