summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2013-11-13 16:58:46 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2013-11-13 17:09:25 +0400
commit65b127572f274758eb2403fec4349350384de899 (patch)
treedc98dd10d525dfdf3c078e505ae8811e513a126d /lib
parentc9d93f34311ce0a9b59ed9f4511a2e3ba69e0f25 (diff)
downloadandroid-node-v8-65b127572f274758eb2403fec4349350384de899.tar.gz
android-node-v8-65b127572f274758eb2403fec4349350384de899.tar.bz2
android-node-v8-65b127572f274758eb2403fec4349350384de899.zip
tls: handle `ssl.start()` errors
Diffstat (limited to 'lib')
-rw-r--r--lib/tls.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tls.js b/lib/tls.js
index f575bd69df..2077b8f5c6 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -940,6 +940,10 @@ function SecurePair(credentials, isServer, requestCert, rejectUnauthorized,
/* The Connection may be destroyed by an abort call */
if (self.ssl) {
self.ssl.start();
+
+ /* In case of cipher suite failures - SSL_accept/SSL_connect may fail */
+ if (self.ssl && self.ssl.error)
+ self.error();
}
});
}