summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2012-07-11 23:54:20 +0400
committerFedor Indutny <fedor.indutny@gmail.com>2012-07-20 01:49:31 +0400
commiteb2ca104628e415fc73c330cdd76fca77bf5ba97 (patch)
tree0704b114b05472fd26b016403e7dfda4d917a5cf /src
parent53716eb0b5338999761d115fad9d392077836e63 (diff)
downloadnodejs-eb2ca104628e415fc73c330cdd76fca77bf5ba97.tar.gz
nodejs-eb2ca104628e415fc73c330cdd76fca77bf5ba97.tar.bz2
nodejs-eb2ca104628e415fc73c330cdd76fca77bf5ba97.zip
tls: veryify server's identity
Diffstat (limited to 'src')
-rw-r--r--src/node_crypto.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 8b21825a2..5b21e55a8 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -1547,7 +1547,8 @@ Handle<Value> Connection::VerifyError(const Arguments& args) {
// We requested a certificate and they did not send us one.
// Definitely an error.
// XXX is this the right error message?
- return scope.Close(String::New("UNABLE_TO_GET_ISSUER_CERT"));
+ return scope.Close(Exception::Error(
+ String::New("UNABLE_TO_GET_ISSUER_CERT")));
}
X509_free(peer_cert);
@@ -1673,7 +1674,7 @@ Handle<Value> Connection::VerifyError(const Arguments& args) {
break;
}
- return scope.Close(s);
+ return scope.Close(Exception::Error(s));
}