summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-11-17 20:46:40 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2011-11-17 23:01:39 +0100
commit3ac5f1106d31bad2e47ca158d9bc95afd38afdca (patch)
tree0d332202cab9a98de8b8aef1f6ef88dedc1fc36c /src
parent1cb6fe47fce9ad02622b790e398cbbd3d600ec55 (diff)
downloadnode-new-3ac5f1106d31bad2e47ca158d9bc95afd38afdca.tar.gz
crypto: make verify() return true or false, not 1 or 0
It's what the documentation says it should return.
Diffstat (limited to 'src')
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index 16fbaea019..d0fcfc9a2a 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -3474,7 +3474,7 @@ class Verify : public ObjectWrap {
delete [] kbuf;
delete [] hbuf;
- return scope.Close(Integer::New(r));
+ return Boolean::New(r && r != -1);
}
Verify () : ObjectWrap () {