Bug 1404911 - make AEAD destructor virtual, r=mt
authorFranziskus Kiefer <franziskuskiefer@gmail.com>
Mon, 02 Oct 2017 14:45:49 +0200
changeset 13617 ffe09c48221c90d66411834e7da1f852fd2af24a
parent 13616 bc6d9e5391daa9807599dffee447ec4368210bf7
child 13618 488c17f05a1ff5c9867c78af2708062c02c49ad8
push id2398
push userfranziskuskiefer@gmail.com
push dateTue, 03 Oct 2017 17:41:18 +0000
reviewersmt
bugs1404911
Bug 1404911 - make AEAD destructor virtual, r=mt Differential Revision: https://phabricator.services.mozilla.com/D90
gtests/ssl_gtest/tls_protect.h
--- a/gtests/ssl_gtest/tls_protect.h
+++ b/gtests/ssl_gtest/tls_protect.h
@@ -15,17 +15,17 @@
 #include "sslt.h"
 
 namespace nss_test {
 class TlsRecordHeader;
 
 class AeadCipher {
  public:
   AeadCipher(CK_MECHANISM_TYPE mech) : mech_(mech), key_(nullptr) {}
-  ~AeadCipher();
+  virtual ~AeadCipher();
 
   bool Init(PK11SymKey *key, const uint8_t *iv);
   virtual bool Aead(bool decrypt, uint64_t seq, const uint8_t *in, size_t inlen,
                     uint8_t *out, size_t *outlen, size_t maxlen) = 0;
 
  protected:
   void FormatNonce(uint64_t seq, uint8_t *nonce);
   bool AeadInner(bool decrypt, void *params, size_t param_length,