summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2014-10-23 22:45:58 +0200
committerBen Noordhuis <info@bnoordhuis.nl>2014-10-23 22:50:00 +0200
commit8a00961b812680f460d24c1a9d52f5b2e4b17af3 (patch)
tree8e4670db603f787d2e6b120c48751d3ccb0aa759 /src/node_crypto.h
parentd2131b74061801936f7f17f8714309aa45981980 (diff)
downloadandroid-node-v8-8a00961b812680f460d24c1a9d52f5b2e4b17af3.tar.gz
android-node-v8-8a00961b812680f460d24c1a9d52f5b2e4b17af3.tar.bz2
android-node-v8-8a00961b812680f460d24c1a9d52f5b2e4b17af3.zip
src: mark more destructors with override keyword
The previous commits fixed oversights in destructors that should have been marked virtual but weren't. This commit marks destructors from derived classes with the override keyword.
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 4d2b9cec07..078077d566 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -71,7 +71,7 @@ class Connection;
class SecureContext : public BaseObject {
public:
- ~SecureContext() {
+ ~SecureContext() override {
FreeCTXMem();
}
@@ -271,7 +271,7 @@ class SSLWrap {
// assumes that any args.This() called will be the handle from Connection.
class Connection : public SSLWrap<Connection>, public AsyncWrap {
public:
- ~Connection() {
+ ~Connection() override {
#ifdef SSL_CTRL_SET_TLSEXT_SERVERNAME_CB
sniObject_.Reset();
sniContext_.Reset();
@@ -361,7 +361,7 @@ class Connection : public SSLWrap<Connection>, public AsyncWrap {
class CipherBase : public BaseObject {
public:
- ~CipherBase() {
+ ~CipherBase() override {
if (!initialised_)
return;
delete[] auth_tag_;
@@ -425,7 +425,7 @@ class CipherBase : public BaseObject {
class Hmac : public BaseObject {
public:
- ~Hmac() {
+ ~Hmac() override {
if (!initialised_)
return;
HMAC_CTX_cleanup(&ctx_);
@@ -458,7 +458,7 @@ class Hmac : public BaseObject {
class Hash : public BaseObject {
public:
- ~Hash() {
+ ~Hash() override {
if (!initialised_)
return;
EVP_MD_CTX_cleanup(&mdctx_);
@@ -505,7 +505,7 @@ class SignBase : public BaseObject {
initialised_(false) {
}
- ~SignBase() {
+ ~SignBase() override {
if (!initialised_)
return;
EVP_MD_CTX_cleanup(&mdctx_);
@@ -598,7 +598,7 @@ class PublicKeyCipher {
class DiffieHellman : public BaseObject {
public:
- ~DiffieHellman() {
+ ~DiffieHellman() override {
if (dh != nullptr) {
DH_free(dh);
}
@@ -644,7 +644,7 @@ class DiffieHellman : public BaseObject {
class ECDH : public BaseObject {
public:
- ~ECDH() {
+ ~ECDH() override {
if (key_ != nullptr)
EC_KEY_free(key_);
key_ = nullptr;