From b80788b28d25597c47ebdac3855a57113048df38 Mon Sep 17 00:00:00 2001 From: Sleeyax Date: Fri, 13 Oct 2023 22:34:45 +0200 Subject: [PATCH] docs: deprecate usage of `OmitEmptyPsk` field in `PreSharedKeyExtension` (closes #255) (#256) --- u_pre_shared_key.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/u_pre_shared_key.go b/u_pre_shared_key.go index e96a3c05..65e0bb66 100644 --- a/u_pre_shared_key.go +++ b/u_pre_shared_key.go @@ -134,6 +134,7 @@ type UtlsPreSharedKeyExtension struct { PreSharedKeyCommon cipherSuite *cipherSuiteTLS13 cachedLength *int + // Deprecated: Set OmitEmptyPsk in Config instead. OmitEmptyPsk bool } @@ -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 }