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
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
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
Bert Belder
9728723508
node_crypto: interface with libuv, not libev
14 years ago
Glen Low
04122ad2d3
crypto: PBKDF2 function from OpenSSL
14 years ago
Tom Hughes
421b6e89aa
crypto: fix incorrect ssl shutdown check
14 years ago
Tom Hughes
94db871ecf
crypto: fix incorrect ssl shutdown check
14 years ago
Fedor Indutny
9010f5fbab
Add support for TLS SNI
Fixes #1411
14 years ago
SAWADA Tadashi
d3a84bea7b
Fix crypto encryption/decryption with Base64.
Fixes #738 .
Fixes #1205 .
14 years ago
Stefan Bühler
db993956d6
Fix crypto hmac to accept binary keys + add test cases from rfc 2202 and 4231
Fixes #324 .
Fixes #1027 .
Instead of converting buffers to strings and back again to char array
directly use the buffer data in hmac_init (same as in hmac_update).
14 years ago
SAWADA Tadashi
e357acc55b
Fix crypto encryption/decryption with Base64.
Fixes #738 .
Fixes #1205 .
14 years ago
Ben Noordhuis
6f0740e67b
crypto: check for SSL_COMP_get_compression_methods()
Function was named SSL_COMP_get_compression_method() (singular)
in OpenSSL 0.9.7 and older.
Fixes #1242 .
14 years ago
Mark Cavage
7c51275bce
Cleanup crypto verify to not print unnecessary errors
14 years ago
Mark Cavage
88552c51ae
Support for signature verification with RSA/DSA public keys
Fixes #1166 .
14 years ago
Ryan Dahl
1d7a46a588
Disabling SSL compression is dependent on OpenSSL version 0.9.8
Fixes #1087 .
14 years ago
Jérémy Lal
f23c45f7f4
Option to disable SSL v2
Fixes #880
14 years ago
Ben Noordhuis
eb4c9ed881
Fix resource leaks in node_crypto.cc
Fixes #1097 .
14 years ago
Ryan Dahl
e83c6959db
Disable compression with OpenSSL.
This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.
14 years ago
Håvard Stranden
9f0b1a9bc6
Add Diffie-Hellman support to crypto module
Fixes #573
14 years ago
Fedor Indutny
c9b40da368
OpenSSL NPN in node.js
closes #926 .
14 years ago
Theo Schlossnagle
2a88dd3bc1
TLS: Add secureOptions flag
Also, secureOptions flag was added (and passed through) and allows
the context to have all supported SSL_OP_* set via createCredentials.
All SSL_OP_ flags (outside of ALL) have been added to constants.
14 years ago
Ryan Dahl
a7254f3df9
Revert "Disable compression with OpenSSL."
This reverts commit 362785f704
.
14 years ago
Ryan Dahl
362785f704
Disable compression with OpenSSL.
This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.
14 years ago
Ryan Dahl
5c35dff419
Don't load root certs for each SSL context
14 years ago