Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
src: make CipherBase::kind_ const
The cipher kind doesn't change over the lifetime of the cipher so make
it const.
  • Loading branch information
bnoordhuis committed Jul 17, 2017
commit dd6f4a960f4e6fa057507d6fd497beff07b280d3
2 changes: 1 addition & 1 deletion src/node_crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
};
Expand Down