Rename VerifyPeerError to VerifyError
authorRyan Dahl <ry@tinyclouds.org>
Wed, 1 Dec 2010 08:46:04 +0000 (00:46 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Wed, 1 Dec 2010 17:26:59 +0000 (09:26 -0800)
src/node_crypto.cc
src/node_crypto.h

index d46ed1e06213456b29090241646ea93a50e9bf6d..77c6186c9d47ff0535445c82de5f87708b18af9a 100644 (file)
@@ -307,7 +307,7 @@ void SecureStream::Initialize(Handle<Object> 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<Value> SecureStream::IsInitFinished(const Arguments& args) {
 }
 
 
-Handle<Value> SecureStream::VerifyPeerError(const Arguments& args) {
+Handle<Value> SecureStream::VerifyError(const Arguments& args) {
   HandleScope scope;
 
   SecureStream *ss = ObjectWrap::Unwrap<SecureStream>(args.Holder());
index 817724189f1bcf5f0a3d29ac156c5208dae32b3b..d37a3272a786173715fe2b0e89f9f8cc5a48236b 100644 (file)
@@ -68,7 +68,7 @@ class SecureStream : ObjectWrap {
   static v8::Handle<v8::Value> ClearIn(const v8::Arguments& args);
   static v8::Handle<v8::Value> GetPeerCertificate(const v8::Arguments& args);
   static v8::Handle<v8::Value> IsInitFinished(const v8::Arguments& args);
-  static v8::Handle<v8::Value> VerifyPeerError(const v8::Arguments& args);
+  static v8::Handle<v8::Value> VerifyError(const v8::Arguments& args);
   static v8::Handle<v8::Value> GetCurrentCipher(const v8::Arguments& args);
   static v8::Handle<v8::Value> Shutdown(const v8::Arguments& args);
   static v8::Handle<v8::Value> Start(const v8::Arguments& args);