Skip to content

Commit 8dd6866

Browse files
bnoordhuisaddaleax
authored andcommitted
src: make CipherBase::kind_ const
The cipher kind doesn't change over the lifetime of the cipher so make it const. PR-URL: #14122 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0fcb8b1 commit 8dd6866

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ class CipherBase : public BaseObject {
476476
private:
477477
EVP_CIPHER_CTX ctx_; /* coverity[member_decl] */
478478
bool initialised_;
479-
CipherKind kind_;
479+
const CipherKind kind_;
480480
unsigned int auth_tag_len_;
481481
char auth_tag_[EVP_GCM_TLS_TAG_LEN];
482482
};

0 commit comments

Comments
 (0)