From 8dd6866303a9f4c25f0544be903b81105121000c Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Mon, 10 Jul 2017 12:56:37 +0200 Subject: [PATCH] src: make CipherBase::kind_ const The cipher kind doesn't change over the lifetime of the cipher so make it const. PR-URL: https://github.com/nodejs/node/pull/14122 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell --- src/node_crypto.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_crypto.h b/src/node_crypto.h index f46e77d6bcb483..a2b8cb7a8872eb 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -476,7 +476,7 @@ class CipherBase : public BaseObject { private: EVP_CIPHER_CTX ctx_; /* coverity[member_decl] */ bool initialised_; - CipherKind kind_; + const CipherKind kind_; unsigned int auth_tag_len_; char auth_tag_[EVP_GCM_TLS_TAG_LEN]; };