Skip to content

Commit fc7d8c0

Browse files
bnoordhuisFishrock123
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 <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent e59858b commit fc7d8c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_crypto.h

+1-1
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)