From 504a80dc6d27ec1027d208c93849200a495fc9ed Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Wed, 1 Dec 2010 00:46:04 -0800 Subject: [PATCH] Rename VerifyPeerError to VerifyError --- src/node_crypto.cc | 6 +++--- src/node_crypto.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node_crypto.cc b/src/node_crypto.cc index d46ed1e062..77c6186c9d 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -307,7 +307,7 @@ void SecureStream::Initialize(Handle target) { NODE_SET_PROTOTYPE_METHOD(t, "encPending", SecureStream::EncPending); NODE_SET_PROTOTYPE_METHOD(t, "getPeerCertificate", SecureStream::GetPeerCertificate); NODE_SET_PROTOTYPE_METHOD(t, "isInitFinished", SecureStream::IsInitFinished); - NODE_SET_PROTOTYPE_METHOD(t, "verifyPeerError", SecureStream::VerifyPeerError); + NODE_SET_PROTOTYPE_METHOD(t, "verifyError", SecureStream::VerifyError); NODE_SET_PROTOTYPE_METHOD(t, "getCurrentCipher", SecureStream::GetCurrentCipher); NODE_SET_PROTOTYPE_METHOD(t, "start", SecureStream::Start); NODE_SET_PROTOTYPE_METHOD(t, "shutdown", SecureStream::Shutdown); @@ -357,7 +357,7 @@ static int VerifyCallback(int preverify_ok, X509_STORE_CTX *ctx) { // // Since we cannot perform I/O quickly enough in this callback, we ignore // all preverify_ok errors and let the handshake continue. It is - // imparative that the user use SecureStream::VerifyPeerError after the + // imparative that the user use SecureStream::VerifyError after the // 'secure' callback has been made. return 1; } @@ -716,7 +716,7 @@ Handle SecureStream::IsInitFinished(const Arguments& args) { } -Handle SecureStream::VerifyPeerError(const Arguments& args) { +Handle SecureStream::VerifyError(const Arguments& args) { HandleScope scope; SecureStream *ss = ObjectWrap::Unwrap(args.Holder()); diff --git a/src/node_crypto.h b/src/node_crypto.h index 817724189f..d37a3272a7 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -68,7 +68,7 @@ class SecureStream : ObjectWrap { static v8::Handle ClearIn(const v8::Arguments& args); static v8::Handle GetPeerCertificate(const v8::Arguments& args); static v8::Handle IsInitFinished(const v8::Arguments& args); - static v8::Handle VerifyPeerError(const v8::Arguments& args); + static v8::Handle VerifyError(const v8::Arguments& args); static v8::Handle GetCurrentCipher(const v8::Arguments& args); static v8::Handle Shutdown(const v8::Arguments& args); static v8::Handle Start(const v8::Arguments& args);