diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2017-07-10 12:56:37 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2017-07-17 23:09:27 +0200 |
commit | e8212cb0255a2417a9767347efd9fcbb5fef311b (patch) | |
tree | 8831a044472188011b33fb30243c743f2d71705f /src/node_crypto.h | |
parent | 6faa1f181359eac74bbf6e16f6d05c83a0013d87 (diff) | |
download | android-node-v8-e8212cb0255a2417a9767347efd9fcbb5fef311b.tar.gz android-node-v8-e8212cb0255a2417a9767347efd9fcbb5fef311b.tar.bz2 android-node-v8-e8212cb0255a2417a9767347efd9fcbb5fef311b.zip |
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 <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index f46e77d6bc..a2b8cb7a88 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]; }; |