diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-09 19:47:55 +0400 |
---|---|---|
committer | Fedor Indutny <fedor.indutny@gmail.com> | 2013-12-10 22:56:01 +0400 |
commit | 4a2792cd2f86403a71edf65d82600b6aad5713bf (patch) | |
tree | 5e932adf6547f8231ecc08b381b88cf12569f5a7 /src | |
parent | 92bbd60a3ffaf7b22e29576d720027cc835bf60e (diff) | |
download | node-4a2792cd2f86403a71edf65d82600b6aad5713bf.tar.gz |
tls: emit 'end' on .receivedShutdown
NOTE: Also removed `.receivedShutdown` method of `Connection` it wasn't
documented anywhere, and was rewritten with `true` after receiving
`close_notify`.
fix #6638
Diffstat (limited to 'src')
-rw-r--r-- | src/node_crypto.cc | 15 | ||||
-rw-r--r-- | src/node_crypto.h | 1 |
2 files changed, 0 insertions, 16 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 3e77918ab..87025dd6b 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -1022,7 +1022,6 @@ void Connection::Initialize(Handle<Object> target) { NODE_SET_PROTOTYPE_METHOD(t, "getCurrentCipher", Connection::GetCurrentCipher); NODE_SET_PROTOTYPE_METHOD(t, "start", Connection::Start); NODE_SET_PROTOTYPE_METHOD(t, "shutdown", Connection::Shutdown); - NODE_SET_PROTOTYPE_METHOD(t, "receivedShutdown", Connection::ReceivedShutdown); NODE_SET_PROTOTYPE_METHOD(t, "close", Connection::Close); #ifdef OPENSSL_NPN_NEGOTIATED @@ -1766,20 +1765,6 @@ Handle<Value> Connection::Shutdown(const Arguments& args) { } -Handle<Value> Connection::ReceivedShutdown(const Arguments& args) { - HandleScope scope; - - Connection *ss = Connection::Unwrap(args); - - if (ss->ssl_ == NULL) return False(); - int r = SSL_get_shutdown(ss->ssl_); - - if (r & SSL_RECEIVED_SHUTDOWN) return True(); - - return False(); -} - - Handle<Value> Connection::IsInitFinished(const Arguments& args) { HandleScope scope; diff --git a/src/node_crypto.h b/src/node_crypto.h index 01a052855..e4c3cfb39 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -186,7 +186,6 @@ class Connection : ObjectWrap { static v8::Handle<v8::Value> VerifyError(const v8::Arguments& args); static v8::Handle<v8::Value> GetCurrentCipher(const v8::Arguments& args); static v8::Handle<v8::Value> Shutdown(const v8::Arguments& args); - static v8::Handle<v8::Value> ReceivedShutdown(const v8::Arguments& args); static v8::Handle<v8::Value> Start(const v8::Arguments& args); static v8::Handle<v8::Value> Close(const v8::Arguments& args); |