Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-12-09 19:47:55 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-12-10 22:56:01 +0400
commit4a2792cd2f86403a71edf65d82600b6aad5713bf (patch)
tree5e932adf6547f8231ecc08b381b88cf12569f5a7 /src
parent92bbd60a3ffaf7b22e29576d720027cc835bf60e (diff)
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.cc15
-rw-r--r--src/node_crypto.h1
2 files changed, 0 insertions, 16 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 3e77918abb9..87025dd6b76 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 01a052855aa..e4c3cfb3927 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);