summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2013-05-17 13:55:29 -0700
committerisaacs <i@izs.me>2013-05-17 13:55:29 -0700
commit199fa9f8ddcb8be78673a93db8719819ab3a7deb (patch)
treecae831e400f3ec7a4a7ffd5fd7594a27d7997139
parentf59ab10a6415e7dce7a6c3b6e734c213298ec205 (diff)
downloadnode-199fa9f8ddcb8be78673a93db8719819ab3a7deb.tar.gz
crypto: Don't ignore verify encoding argument
-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 774550c99..d59151016 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -3309,7 +3309,7 @@ class Verify : public ObjectWrap {
unsigned char* hbuf = new unsigned char[hlen];
ssize_t hwritten = StringBytes::Write(
- reinterpret_cast<char*>(hbuf), hlen, args[1], BINARY);
+ reinterpret_cast<char*>(hbuf), hlen, args[1], encoding);
assert(hwritten == hlen);
int r;