summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index 982fc70543..1c66b318a2 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -367,6 +367,9 @@ class ByteSource {
static ByteSource FromSymmetricKeyObject(v8::Local<v8::Value> handle);
+ ByteSource(const ByteSource&) = delete;
+ ByteSource& operator=(const ByteSource&) = delete;
+
private:
const char* data_ = nullptr;
char* allocated_data_ = nullptr;
@@ -376,8 +379,6 @@ class ByteSource {
static ByteSource Allocated(char* data, size_t size);
static ByteSource Foreign(const char* data, size_t size);
-
- DISALLOW_COPY_AND_ASSIGN(ByteSource);
};
enum PKEncodingType {