Ryan Dahl
be67fa7e09
Revert "crypto: add SecureContext.clearOptions() method"
API addition needs to go in master. Also openssl-0.9.8k doesn't have
SSL_CTX_clear_options().
This reverts commit 6f8839d2ac
.
13 years ago
Ben Noordhuis
6f8839d2ac
crypto: add SecureContext.clearOptions() method
SecureContext.setOptions() is backed by SSL_CTX_set_options() which, contrary to
what the name suggests, is additive: it doesn't set options, it adds them to the
already active options.
Hence the need for SecureContext.clearOptions(), which lets you unset active
options.
13 years ago
Ryan Dahl
20ba454ef9
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
f168f7d702
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
356992fe4d
isolates: isolate-ify the main loop
13 years ago
Ryan Dahl
9d792f3183
Add node::Loop() and don't inc node_isolate.h in *.cc
node::Loop() replaces the NODE_LOOP macro. This avoids hitting
v8::Isolate::GetCurrent() for each loop lookup when HAVE_ISOLATE==0
13 years ago
Ryan Dahl
87bb848268
Remove node_isolate.h from node.h
13 years ago
Ben Noordhuis
c3346f6760
isolates: isolate-ify the main loop
13 years ago
Roman Shtylman
4b123f9ca2
crypto: rewrite HexDecode without snprintf
No need to use snprintf to create a hex string. It creates
more overhead than is needed. This new version is much faster.
13 years ago
Ben Noordhuis
cc2861ee44
crypto: don't ignore DH init errors
13 years ago
Ben Noordhuis
ef12fa1bf7
crypto: deduplicate encoding parsing logic
13 years ago
Ben Noordhuis
321ec97d95
crypto: deduplicate decipher logic
13 years ago
Ben Noordhuis
77f21787d4
crypto: fix memory leak when decrypting empty strings
Also fixes a dangling pointer delete[] in the error path.
13 years ago
Ben Noordhuis
d70ef199f1
crypto: fix memory leaks in PBKDF2 error path
13 years ago
Ryan Dahl
c5e51cead8
Move lock back to node_crypto.cc
13 years ago
Ryan Dahl
e10fd321e4
move global vars from platfrom, node_signal_watcher to struct
13 years ago
Ryan Dahl
e53e9c72cb
move global vars for node_file.cc, node_zlib.cc, and node_crypto.cc
13 years ago
Ben Noordhuis
f44d0b9044
crypto: throw exception on unknown digest method
Fixes #2227 .
13 years ago
Ingmar Runge
260383215b
node_crypto: use EVP_Cipher*_ex methods, not 'obsolete' versions
This also fixes an issue that made blowfish's ECB mode unusable.
13 years ago
Ben Noordhuis
a808ab4ac4
crypto: use the libuv rwlock API
13 years ago
Ben Noordhuis
9d3faf4f9a
crypto: add support for RSA public key signing/verification
13 years ago
Ben Noordhuis
3ac5f1106d
crypto: make verify() return true or false, not 1 or 0
It's what the documentation says it should return.
13 years ago
Ben Noordhuis
534e41b474
crypto: make verify() return true or false, not 1 or 0
It's what the documentation says it should return.
13 years ago
Ben Noordhuis
cf2ee19049
crypto: fix 'var may be used uninitialized' compiler warnings
13 years ago
Ben Noordhuis
cdcb1118c8
Remove stray NODE_MODULE() semi-colons.
13 years ago
Ben Noordhuis
efb833f342
crypto: use the right mutex
13 years ago
Ben Noordhuis
97cada0e6a
crypto: make module thread-safe
13 years ago
Bert Belder
189dd8f803
Fix line endings and trailing whitespace
13 years ago
koichik
f53d092a2a
tls, https: add passphrase option
Fixes #1925 .
13 years ago
koichik
19a855382c
tls: requestCert unusable with Firefox and Chrome
Fixes #1516 .
13 years ago
Ben Noordhuis
c4eaf7e5a9
crypto: implement randomBytes() and pseudoRandomBytes()
13 years ago
Ben Noordhuis
93aad55342
crypto: fix delete of potentially uninitialized pointer
13 years ago
Ben Noordhuis
fdb0eb5825
crypto: fix read of potentially uninitialized variable
13 years ago
Ben Noordhuis
3a9b08f156
crypto: look up SSL errors with ERR_print_errors()
13 years ago
Ben Noordhuis
9ef962f9ee
crypto: fix error message buffer overrun
ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.
13 years ago
Ben Noordhuis
320cf729db
crypto: fix delete of potentially uninitialized pointer
13 years ago
Ben Noordhuis
b185751c3f
crypto: fix read of potentially uninitialized variable
13 years ago
Ryan Dahl
6312e889b1
Drain OpenSSL error queue? Addresses #1719
13 years ago
Ben Noordhuis
44bebc0d52
crypto: look up SSL errors with ERR_print_errors()
13 years ago
Ben Noordhuis
0ad28fdd37
crypto: fix error message buffer overrun
ERR_error_string() expects a buffer of at least 256 bytes, the input buffer
was not even half that size. Use ERR_error_string_n() instead.
13 years ago
Ben Noordhuis
638773628c
tls: new[] instead of malloc() in Connection::GetSession()
14 years ago
Sean Cunningham
eb99083d0b
tls: add client-side session resumption support
14 years ago
koichik
28a908471d
crypto: Fix BIO's usage.
Fixes #1612 .
Fixes #1296 .
14 years ago
Ben Noordhuis
5ded5e274f
crypto: use X509_get_ext_by_NID(NID_subject_alt_name)
14 years ago
Niclas Hoyer
7b2536a1a2
Added additional properties to getPeerCertificate, now includes subjectAltName, Exponent and Modulus (FOAF+SSL friendly).
Patch written by Nathan,
http://groups.google.com/group/nodejs/browse_thread/thread/1d42da4cb2e51536
14 years ago
Ryan Dahl
84cf0c5280
crypto: set data before sending to thread pool
fixes test-crypto
14 years ago
Ryan Dahl
21cc4c4985
Upgrade libuv to ea4271f
Required adding uv_default_loop() in many places.
14 years ago
koichik
6f60683802
tls: x509 certificate subject parsing fail
Fixes #1568 .
14 years ago
Igor Zinkovsky
bce41fac94
Use new uv_fs_ apis
This will cause master to be unstable for a while as we replace existing eio
calls with uv_fs calls.
14 years ago
Peter Bright
0110c90382
Upgrade to 0.9.8r.
Build in Win32.
14 years ago