- Sep 12, 2012
-
-
Bert Belder authored
-
Bert Belder authored
Git for Windows can't create symlinks. This works too.
-
Bert Belder authored
Use a empty implementation for function OPENSSL_cpuid_setup to resolve link error. We should figure out how to geenrate platform specific implementation of OPENSSL_cpuid_setup by leveraging crypto/*cpuid.pl. This patch is taken from Chromium.
-
Bert Belder authored
-
Ben Noordhuis authored
ASN1_STRING_to_UTF8() passes an ASN1_STRING to ASN1_STRING_set() but forgot to initialize the `length` field. Fixes the following valgrind error: $ valgrind -q --track-origins=yes --num-callers=19 \ out/Debug/node test/simple/test-tls-client-abort.js ==2690== Conditional jump or move depends on uninitialised value(s) ==2690== at 0x784B69: ASN1_STRING_set (asn1_lib.c:382) ==2690== by 0x809564: ASN1_mbstring_ncopy (a_mbstr.c:204) ==2690== by 0x8090F0: ASN1_mbstring_copy (a_mbstr.c:86) ==2690== by 0x782F1F: ASN1_STRING_to_UTF8 (a_strex.c:570) ==2690== by 0x78F090: asn1_string_canon (x_name.c:409) ==2690== by 0x78EF17: x509_name_canon (x_name.c:354) ==2690== by 0x78EA7D: x509_name_ex_d2i (x_name.c:210) ==2690== by 0x788058: ASN1_item_ex_d2i (tasn_dec.c:239) ==2690== by 0x7890D4: asn1_template_noexp_d2i (tasn_dec.c:746) ==2690== by 0x788CB6: asn1_template_ex_d2i (tasn_dec.c:607) ==2690== by 0x78877A: ASN1_item_ex_d2i (tasn_dec.c:448) ==2690== by 0x7890D4: asn1_template_noexp_d2i (tasn_dec.c:746) ==2690== by 0x788CB6: asn1_template_ex_d2i (tasn_dec.c:607) ==2690== by 0x78877A: ASN1_item_ex_d2i (tasn_dec.c:448) ==2690== by 0x787C93: ASN1_item_d2i (tasn_dec.c:136) ==2690== by 0x78F5E4: d2i_X509 (x_x509.c:141) ==2690== by 0x7C9B91: PEM_ASN1_read_bio (pem_oth.c:81) ==2690== by 0x7CA506: PEM_read_bio_X509 (pem_x509.c:67) ==2690== by 0x703C9A: node::crypto::SecureContext::AddRootCerts(v8::Arguments const&) (node_crypto.cc:497) ==2690== Uninitialised value was created by a stack allocation ==2690== at 0x782E89: ASN1_STRING_to_UTF8 (a_strex.c:560) -
Bert Belder authored
There are many symbolic links under /etc/ssl/certs created by using hash of the pem certificates in order for OpenSSL to find those certificate. Openssl has a tool to help you create hash symbolic links. (See tools/c_rehash) However the new openssl changed the hash algorithm, Unless you compile/install the latest openssl library and re-create all related symbolic links, the new openssl can not find some certificates because the links of those certificates were created by using old hash algorithm, which causes some tests failed. This patch gives a way to find a certificate according to its hash by using both new algorithm and old algorithm. crbug.com/111045 is used to track this issue. This patch is taken from the Chromium project.
-
Ben Noordhuis authored
This is a back-port of r22768: sha1-armv4-large.pl: comply with ABI.
-
Bert Belder authored
Enables SSL3+ clients to send application data immediately following the Finished message even when negotiating full-handshakes. With this patch, clients can negotiate SSL connections in 1-RTT even when performing full-handshakes. This patch is taken from the Android Open Source Project.
-
Bert Belder authored
SSL records may be as large as 16K, but are typically < 2K. In addition, a historic bug in Windows allowed records to be as large 32K. OpenSSL statically allocates read and write buffers (34K and 18K respectively) used for processing records. With this patch, OpenSSL statically allocates 4K + 4K buffers, with the option of dynamically growing buffers to 34K + 4K, which is a saving of 44K per connection for the typical case. This patch is taken from the Android Open Source Project.
-
Bert Belder authored
-
Ben Noordhuis authored
Make Buffer:Data() and Buffer::Length() accept a Value instead of an Object.
-
- Sep 11, 2012
-
-
Ben Noordhuis authored
Remove code that works around a padding bug in older versions of openssl, the bundled version of openssl contains the bug fix.
-
Ben Noordhuis authored
-
- Sep 10, 2012
-
-
Ben Noordhuis authored
They are no longer necessary now that node-waf has been removed. People need to switch to node-gyp.
-
Nathan Rajlich authored
-
Nathan Rajlich authored
Returns an Array-representation of the Buffer. Closes #3905.
-
- Sep 05, 2012
-
-
Fedor Indutny authored
-
Ben Noordhuis authored
This used to be the internal 'finish' event. Make it public so API users will know when the response has been sent completely. Fixes #3855.
-
- Sep 04, 2012
-
-
Ben Noordhuis authored
-
Timothy J Fontaine authored
-
Ben Noordhuis authored
This bug was already fixed in the v0.8 branch but git skips the patch when merging v0.8 into master. Reapply it manually. Fixes #3961.
-
Ben Noordhuis authored
Conflicts: deps/uv/include/uv.h src/node_crypto.cc
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Atsuya Takagi authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
-
Ben Noordhuis authored
Don't execute the callback in the context of the global object. MakeCallback() tries to apply the active domain to the callback. If the user polluted the global object with a 'domain' property, as in the code example below, MakeCallback() will try to apply that. Example: domain = {}; // missing var keyword is intentional crypto.randomBytes(8, cb); // TypeError: undefined is not a function Fixes #3956. -
Bert Belder authored
Blowing up when the user attaches a signal handler makes no sense. Also, in Node 0.10 signals will be supported, so allow people to get used to it.
-
- Sep 03, 2012
-
-
Ben Noordhuis authored
Fixes #3938.
-
- Sep 02, 2012
-
-
koichik authored
to writeDoubleBE(), writeDoubleLE(), writeFloatBE() and writeFloatLE(). Fixes #3934.
-
Ben Noordhuis authored
pthread_t is a pointer type on OS X but an unsigned long on most other platforms. Use a C style cast because reinterpret_cast nor static_cast work in all cases.
-
Ben Noordhuis authored
-
- Sep 01, 2012
-
-
koichik authored
to writeDoubleBE(), writeDoubleLE(), writeFloatBE() and writeFloatLE(). Fixes #3934.
-
- Aug 31, 2012
-
-
Ben Noordhuis authored
Don't use CRYPTO_set_id_callback(), it's deprecated.
-
Shigeki Ohtsu authored
-
- Aug 30, 2012
-
-
Bert Belder authored
-
Bert Belder authored
-
Bert Belder authored
With this patch the IPC socket is no longer available in the ChildProcess.stdio array. This shouldn't be very problematic, since this socket was effectively non-functional; it would never emit any events.
-