diff options
author | Trevor Norris <trev.norris@gmail.com> | 2013-10-29 12:49:53 -0700 |
---|---|---|
committer | Trevor Norris <trev.norris@gmail.com> | 2013-10-29 15:09:44 -0700 |
commit | 60a3e695cb6ff09f81de4195368535fdb11e2da9 (patch) | |
tree | 1e39179a155cc98ce9cca734e300d32d8cc07f5b /src/tls_wrap.cc | |
parent | 93f75a86bf6c87aa897312740aab61282b0eff1d (diff) | |
download | node-new-60a3e695cb6ff09f81de4195368535fdb11e2da9.tar.gz |
src: don't use WeakObject::Unwrap
Switch out to use UnwrapObject from util.h.
Diffstat (limited to 'src/tls_wrap.cc')
-rw-r--r-- | src/tls_wrap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls_wrap.cc b/src/tls_wrap.cc index 3b22ce50b1..6976e251bd 100644 --- a/src/tls_wrap.cc +++ b/src/tls_wrap.cc @@ -60,7 +60,7 @@ TLSCallbacks::TLSCallbacks(Environment* env, Kind kind, Handle<Object> sc, StreamWrapCallbacks* old) - : SSLWrap<TLSCallbacks>(env, WeakObject::Unwrap<SecureContext>(sc), kind), + : SSLWrap<TLSCallbacks>(env, UnwrapObject<SecureContext>(sc), kind), StreamWrapCallbacks(old), enc_in_(NULL), enc_out_(NULL), @@ -72,7 +72,7 @@ TLSCallbacks::TLSCallbacks(Environment* env, shutdown_(false) { // Persist SecureContext - sc_ = WeakObject::Unwrap<SecureContext>(sc); + sc_ = UnwrapObject<SecureContext>(sc); sc_handle_.Reset(node_isolate, sc); Local<Object> object = env->tls_wrap_constructor_function()->NewInstance(); @@ -694,7 +694,7 @@ int TLSCallbacks::SelectSNIContextCallback(SSL* s, int* ad, void* arg) { p->sni_context_.Dispose(); p->sni_context_.Reset(node_isolate, ctx); - SecureContext* sc = WeakObject::Unwrap<SecureContext>(ctx.As<Object>()); + SecureContext* sc = UnwrapObject<SecureContext>(ctx.As<Object>()); SSL_set_SSL_CTX(s, sc->ctx_); } |