Skip to content

Commit

Permalink
docs: deprecate usage of OmitEmptyPsk field in `PreSharedKeyExtensi…
Browse files Browse the repository at this point in the history
…on` (closes #255) (#256)
  • Loading branch information
sleeyax authored Oct 13, 2023
1 parent 1880d78 commit 30f5a69
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions u_pre_shared_key.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ type UtlsPreSharedKeyExtension struct {
PreSharedKeyCommon
cipherSuite *cipherSuiteTLS13
cachedLength *int
// Deprecated: Set OmitEmptyPsk in Config instead.
OmitEmptyPsk bool
}

Expand Down Expand Up @@ -308,8 +309,9 @@ func (e *UtlsPreSharedKeyExtension) UnmarshalJSON(_ []byte) error {
type FakePreSharedKeyExtension struct {
UnimplementedPreSharedKeyExtension

Identities []PskIdentity `json:"identities"`
Binders [][]byte `json:"binders"`
Identities []PskIdentity `json:"identities"`
Binders [][]byte `json:"binders"`
// Deprecated: Set OmitEmptyPsk in Config instead.
OmitEmptyPsk bool
}

Expand Down

0 comments on commit 30f5a69

Please sign in to comment.