From 0cb684ea2f1c99acad06afb661b769fd764fbfb3 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Sat, 26 Oct 2024 09:49:46 +0900 Subject: [PATCH] Remove non-applicable comment --- jwe/options.yaml | 5 ----- jwe/options_gen.go | 5 ----- 2 files changed, 10 deletions(-) diff --git a/jwe/options.yaml b/jwe/options.yaml index 2ab19847..33c20ae6 100644 --- a/jwe/options.yaml +++ b/jwe/options.yaml @@ -84,11 +84,6 @@ options: WithMessage provides a message object to be populated by `jwe.Decrypt` Using this option allows you to decrypt AND obtain the `jwe.Message` in one go. - - Note that you should NOT be using the message object for anything other - than inspecting its contents. Particularly, do not expect the message - reliable when you call `Decrypt` on it. `(jwe.Message).Decrypt` is - slated to be deprecated in the next major version. - ident: RequireKid interface: WithKeySetSuboption argument_type: bool diff --git a/jwe/options_gen.go b/jwe/options_gen.go index 39a56e39..9d210c07 100644 --- a/jwe/options_gen.go +++ b/jwe/options_gen.go @@ -313,11 +313,6 @@ func WithMergeProtectedHeaders(v bool) EncryptOption { // WithMessage provides a message object to be populated by `jwe.Decrypt` // Using this option allows you to decrypt AND obtain the `jwe.Message` // in one go. -// -// Note that you should NOT be using the message object for anything other -// than inspecting its contents. Particularly, do not expect the message -// reliable when you call `Decrypt` on it. `(jwe.Message).Decrypt` is -// slated to be deprecated in the next major version. func WithMessage(v *Message) DecryptOption { return &decryptOption{option.New(identMessage{}, v)} }