Merge remote branch 'origin/v0.6'
authorRyan Dahl <ry@tinyclouds.org>
Fri, 16 Dec 2011 21:57:36 +0000 (13:57 -0800)
committerRyan Dahl <ry@tinyclouds.org>
Fri, 16 Dec 2011 21:57:36 +0000 (13:57 -0800)
Conflicts:
wscript

1  2 
Makefile
src/node_crypto.cc
src/node_file.cc
test/simple/test-crypto.js

diff --cc Makefile
+++ b/Makefile
@@@ -75,10 -86,24 +75,24 @@@ website_files = 
        out/doc/sh_vim-dark.css \
        out/doc/logo.png      \
        out/doc/sponsored.png \
-   out/doc/favicon.ico   \
-       out/doc/pipe.css
+       out/doc/favicon.ico   \
+       out/doc/pipe.css \
+       out/doc/about/index.html \
+       out/doc/close-downloads.png \
+       out/doc/community/index.html \
+       out/doc/community/not-invented-here.png \
+       out/doc/download-logo.png \
+       out/doc/ebay-logo.png \
+       out/doc/footer-logo.png \
+       out/doc/icons.png \
+       out/doc/linkedin-logo.png \
+       out/doc/logos/index.html \
+       out/doc/microsoft-logo.png \
+       out/doc/platform-icons.png \
+       out/doc/ryan-speaker.jpg \
+       out/doc/yahoo-logo.png
  
 -doc docs: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
 +doc: out/Release/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs)
  
  $(apidoc_dirs):
        mkdir -p $@
@@@ -2577,16 -2598,14 +2585,17 @@@ class Decipher : public ObjectWrap 
  
      Decipher *cipher = ObjectWrap::Unwrap<Decipher>(args.This());
  
 -    unsigned char* out_value;
 -    int out_len;
 +    unsigned char* out_value = NULL;
 +    int out_len = -1;
      Local<Value> outString;
  
-     int r = cipher->DecipherFinal(&out_value, &out_len, false);
+     int r = cipher->DecipherFinal<TOLERATE_PADDING>(&out_value, &out_len);
  
 +    assert(out_value != NULL);
 +    assert(out_len != -1);
 +
      if (out_len == 0 || r == 0) {
+       delete[] out_value;
        return scope.Close(String::New(""));
      }
  
Simple merge
Simple merge