Ryan Dahl
be2457aaca
Use SSL_MODE_RELEASE_BUFFERS by default.
14 years ago
Ryan Dahl
7515360951
fix style for SecureStream::IsInitFinished
14 years ago
Ryan Dahl
de6e88c428
Fix segfault on test-crypto
Plus random cleanups. This code needs help.
14 years ago
Tim-Smart
79ecc8e9b7
Style changes.
14 years ago
Paul Querna
6ea61acf29
remove old todo.
14 years ago
Paul Querna
1ce4684a27
Centralize error handling in SecureStream
and add a start method, to kick off SSL handshaking, without writing a zero
byte buffer
14 years ago
Ryan Dahl
fe74283e1d
Fix a few compiler warnings...
14 years ago
Ryan Dahl
a6017660d8
More clang fixes
14 years ago
Ryan Dahl
9911629de0
Fix style in node_crypto.cc
14 years ago
Ryan Dahl
163485c8aa
Rename some SecureStream methods
14 years ago
Paul Querna
9a701b0a70
Expose fingerproint from getPeerCertificate
Expose the SHA1 digest of the certificate as the fingerprint attribute in
the object returned by getPeerCertificate()
15 years ago
Ryan Dahl
5da4faf8c7
fast buffers for crypto
15 years ago
Andrew Naylor
e0d6f14b22
Buffer for Cipher, Decipher, Hmac, Sign and Verify
15 years ago
Ryan Dahl
9a26946aaa
Fix for issue #214
15 years ago
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
15 years ago
Peter Griess
99a5d1e293
Free kbuf[] in Verify::VerifyFinal().
15 years ago
Peter Griess
792c7caf40
Coverity fixes: src/node_crypto
15 years ago
Blake Mizerany
8c8534046c
fix whitespace errors
15 years ago
isaacs
73f207fe59
Throw exceptions, not strings
15 years ago
Ryan Dahl
459440842f
More lint on node_crypto
15 years ago
Ryan Dahl
9854216d36
Fix a bunch of memory leaks in node_crypto
15 years ago
Ryan Dahl
5bc00abed7
Lint node_crypto.cc
15 years ago
Ryan Dahl
5f88097eb4
Remove unused code from node_crypto
15 years ago
Ryan Dahl
d6072766ed
Fix memory leak in hash.update()
15 years ago
Ryan Dahl
009b4569b3
Merge Hash.init() function into JS constructor
15 years ago
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
This reverts commit 032f651824
.
15 years ago
Ryan Dahl
032f651824
Check for strings.h
15 years ago
Rhys Jones
afce4c3ae8
Added default CAs, updated openssl verify behaviour, added crypto and https documentation
15 years ago
Rhys Jones
1a317135c5
Additional OpenSSL tests
15 years ago
Paulo Matias
430cfd1825
Read all records to always empty the OpenSSL reading buffer.
15 years ago
Paulo Matias
3fed1cf36f
Make it possible to use client certificates to connect with a nodejs server, and make verifyPeer behaviour consistant.
15 years ago
Ryan Dahl
c6248efd73
Compile for beta versions of OpenSSL 1.0.0
15 years ago
Krishna Rajendran
7a34afba77
openssl 1.0.0 constification
15 years ago
Ryan Dahl
c9e27b11c5
Unify ErrnoException creation
15 years ago
Rhys Jones
e4a6b72ae3
Added test and started tidy-up of node_crypto.cc
15 years ago
Rhys Jones
80174392bb
Moved Credentials into crypto module. Added node_crypto into crypto module
15 years ago
Rhys Jones
fb3a9cd0d8
Initial openssl support for net2
15 years ago