summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2012-07-20 21:10:23 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2012-07-20 21:10:23 +0400
commit5950db197c5ee73922beb67e3b8c060b5fcbc7f7 (patch)
tree32ea3051e8be261ccc0dd6be26805dc6c44ba18c /lib
parent4aa09d1e0e29139484e3f2c72294fd8315c9ca33 (diff)
downloadandroid-node-v8-5950db197c5ee73922beb67e3b8c060b5fcbc7f7.tar.gz
android-node-v8-5950db197c5ee73922beb67e3b8c060b5fcbc7f7.tar.bz2
android-node-v8-5950db197c5ee73922beb67e3b8c060b5fcbc7f7.zip
tls: revert accidental API change
socket.authorizationError should always be string. Also make sni test pass.
Diffstat (limited to 'lib')
-rw-r--r--lib/tls.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tls.js b/lib/tls.js
index aec7cae426..584ee0a5b9 100644
--- a/lib/tls.js
+++ b/lib/tls.js
@@ -1059,7 +1059,7 @@ function Server(/* [options], listener */) {
} else {
var verifyError = pair.ssl.verifyError();
if (verifyError) {
- pair.cleartext.authorizationError = verifyError;
+ pair.cleartext.authorizationError = verifyError.message;
if (self.rejectUnauthorized) {
socket.destroy();