diff options
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r-- | src/node_crypto.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h index a0551651fb..c9ca39d3e6 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -421,20 +421,16 @@ enum KeyType { // use. class ManagedEVPPKey { public: - ManagedEVPPKey(); - explicit ManagedEVPPKey(EVP_PKEY* pkey); - ManagedEVPPKey(const ManagedEVPPKey& key); - ManagedEVPPKey(ManagedEVPPKey&& key); - ~ManagedEVPPKey(); - - ManagedEVPPKey& operator=(const ManagedEVPPKey& key); - ManagedEVPPKey& operator=(ManagedEVPPKey&& key); + ManagedEVPPKey() = default; + explicit ManagedEVPPKey(EVPKeyPointer&& pkey); + ManagedEVPPKey(const ManagedEVPPKey& that); + ManagedEVPPKey& operator=(const ManagedEVPPKey& that); operator bool() const; EVP_PKEY* get() const; private: - EVP_PKEY* pkey_; + EVPKeyPointer pkey_; }; class KeyObject : public BaseObject { |