From eb2ca104628e415fc73c330cdd76fca77bf5ba97 Mon Sep 17 00:00:00 2001 From: Fedor Indutny Date: Wed, 11 Jul 2012 23:54:20 +0400 Subject: tls: veryify server's identity --- src/node_crypto.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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 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 Connection::VerifyError(const Arguments& args) { break; } - return scope.Close(s); + return scope.Close(Exception::Error(s)); } -- cgit v1.2.3