mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
tls: veryify server's identity
This commit is contained in:
1 parent
53716eb0b5
commit
eb2ca10462
4 files changed
+306
-13
No files matched your search
+3
-2
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user