summaryrefslogtreecommitdiff
path: root/src/node_crypto.h
diff options
context:
space:
mode:
authorTrevor Norris <trev.norris@gmail.com>2016-11-02 14:53:42 -0600
committerAnna Henningsen <anna@addaleax.net>2017-05-10 22:22:10 +0200
commitf1ed19d98fe8c659d6f9130c47f10bbc27d800ef (patch)
tree33a16c9113286b34e327c8cddedfa6fac8f028af /src/node_crypto.h
parentd9f3ec8e0943d00c4cad724359bf9944f733f4c8 (diff)
downloadandroid-node-v8-f1ed19d98fe8c659d6f9130c47f10bbc27d800ef.tar.gz
android-node-v8-f1ed19d98fe8c659d6f9130c47f10bbc27d800ef.tar.bz2
android-node-v8-f1ed19d98fe8c659d6f9130c47f10bbc27d800ef.zip
async_wrap: use more specific providers
Instead of wrapping several providers into PROVIDER_CRYPTO, have them all be named after their class. Rename other providers to also match their class names. With the exception of Parser. Which is actually HTTPParser. Add PROVIDER_LENGTH to make better checks in WrapperInfo(). PR-URL: https://github.com/nodejs/node/pull/12892 Ref: https://github.com/nodejs/node/pull/11883 Ref: https://github.com/nodejs/node/pull/8531 Reviewed-By: Andreas Madsen <amwebdk@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Sam Roberts <vieuxtech@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'src/node_crypto.h')
-rw-r--r--src/node_crypto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.h b/src/node_crypto.h
index ffb8444ce6..90e268456a 100644
--- a/src/node_crypto.h
+++ b/src/node_crypto.h
@@ -402,7 +402,7 @@ class Connection : public AsyncWrap, public SSLWrap<Connection> {
v8::Local<v8::Object> wrap,
SecureContext* sc,
SSLWrap<Connection>::Kind kind)
- : AsyncWrap(env, wrap, AsyncWrap::PROVIDER_CRYPTO),
+ : AsyncWrap(env, wrap, AsyncWrap::PROVIDER_CONNECTION),
SSLWrap<Connection>(env, sc, kind),
bio_read_(nullptr),
bio_write_(nullptr),