The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.

Please select the desired protocol below to get the URL.

This URL has Read-Only access.

Statistics
| Branch: | Revision:

main_repo / src / node_crypto.cc @ 0544a586

History | View | Annotate | Download (125 KB)

# Date Author Comment
eb2ca104 07/19/2012 05:49 PM Fedor Indutny

tls: veryify server's identity

26f1bc8e 07/08/2012 08:45 AM Ben Noordhuis

crypto: fix DecipherUpdate() memory leak

Fix a memory leak in the the code path that deals with partial hex strings.

af52bc4f 06/21/2012 07:06 PM Fedor Indutny

crypto: fix error reporting in SetKey()

ae5b0e1f 06/17/2012 04:59 PM Fedor Indutny

crypto: add padding to diffie-hellman key

DH_size returns number of bytes in a prime number, DH_compute_key returns number
of bytes in a remainder of exponent, which may have less bytes than a prime
number. Therefore add 0-padding to the allocated buffer....

900196e1 06/12/2012 03:50 PM Ben Noordhuis

crypto: make cipher/decipher accept buffer args

5164ae38 05/15/2012 02:37 PM isaacs

Merge remote-tracking branch 'ry/v0.6' into v0.6-merge

Conflicts:
ChangeLog
deps/uv/include/uv-private/uv-unix.h
deps/uv/src/unix/core.c
deps/uv/src/unix/sunos.c
deps/v8/src/runtime.cc
doc/api/crypto.markdown
lib/http.js
src/node_version.h
test/gc/test-http-client-timeout.js...

fb7348ae 05/14/2012 11:12 AM ssuda

crypto: add PKCS12/PFX support

Fixes #2845.

78e831a3 05/08/2012 10:02 AM Ben Noordhuis

Don't use _snprintf() on Windows, it's not safe.

_snprintf() doesn't zero-terminate the buffer on overflow. Use the hand-rolled
version that lives in src/node_internals.h.

ecca7525 04/18/2012 02:57 PM isaacs

Merge remote-tracking branch 'ry/v0.6' into master

Conflicts:
AUTHORS
ChangeLog
LICENSE
Makefile
deps/http_parser/test.c
deps/npm/AUTHORS
deps/npm/html/api/bin.html
deps/npm/html/api/bugs.html
deps/npm/html/api/commands.html
deps/npm/html/api/config.html...

d4ed2e61 04/17/2012 04:14 PM isaacs

Add Todo comments about domain-ifying crypto

a26bee8f 04/17/2012 04:14 PM isaacs

MakeCallback: Consistent symbol usage

35c0cd21 04/17/2012 03:00 PM isaacs

MakeCallback: Use in node_crypto

9eacf939 03/30/2012 03:24 PM Ben Noordhuis

crypto: root JS objects in HandleScope with Local<>

17524432 03/30/2012 10:07 AM Ben Noordhuis

Fix Engrish in error messages.

6986d931 03/30/2012 08:52 AM Ben Noordhuis

crypto: fix signedness compiler warnings

249c3c16 03/22/2012 08:02 PM ssuda

Avoiding unnecessary ToString() calls

String::Utf8Value and String::AsciiValue constructors take Handle<Value>
So no need to convert to Handle<String>

ea44d303 03/22/2012 10:52 AM Ben Noordhuis

crypto: fix compile-time error with openssl <= 0.9.7e

ff4a9d38 03/09/2012 06:14 PM Ben Noordhuis

core: use proper #include directives

c6a04ce7 02/21/2012 08:07 AM Tomasz Buchert

crypto: add function getDiffieHellman()

Returns a well known, predefined RFC group.

31721da4 02/18/2012 12:46 PM isaacs

Merge remote-tracking branch 'ry/v0.6' into v0.6-merge

Conflicts:
AUTHORS
ChangeLog
Makefile
doc/about/index.html
doc/api/tls.markdown
doc/community/index.html
doc/index.html
doc/logos/index.html
doc/template.html
lib/http.js
lib/tls.js
src/node_version.h...

3415427d 02/16/2012 12:15 PM Ben Noordhuis

tls: mitigate session renegotiation attacks

The TLS protocol allows (and sometimes requires) clients to renegotiate the
session. However, renegotiation requires a disproportional amount of server-side
resources, particularly CPU time, which makes it a potential vector for...

74a8215a 02/06/2012 09:44 AM Ben Noordhuis

Revert support for isolates.

It was decided that the performance benefits that isolates offer (faster spin-up
times for worker processes, faster inter-worker communication, possibly a lower
memory footprint) are not actual bottlenecks for most people and do not outweigh...

667aae59 01/23/2012 01:30 PM Fedor Indutny

Merge branch 'v0.6'

Conflicts:
ChangeLog
doc/template.html
lib/cluster.js
lib/http.js
lib/tls.js
src/node.h
src/node_version.h
test/simple/test-cluster-kill-workers.js

9edb9842 01/22/2012 12:20 PM Ben Noordhuis

crypto: silence unused variable warning

`retry` is not used if SSL_PRINT_DEBUG is not defined.

0ca30187 01/18/2012 03:20 PM Ingmar Runge

Crypto: adding ability to turn off automatic PKCS padding

8b28d599 01/09/2012 02:20 PM Ryan Dahl

Merge remote branch 'origin/v0.6'

Conflicts:
Makefile
configure
src/node_version.h

be67fa7e 01/06/2012 03:01 PM Ryan Dahl

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 6f8839d2ac362ced42235a34a023af5e2c656501.

c123ac05 01/02/2012 06:29 AM Ben Noordhuis

Merge remote-tracking branch 'origin/v0.6'

Conflicts:
src/udp_wrap.cc

6f8839d2 01/02/2012 06:02 AM Ben Noordhuis

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...

20ba454e 12/28/2011 07:56 PM Ryan Dahl

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

f168f7d7 12/28/2011 07:56 PM Ryan Dahl

Remove node_isolate.h from node.h

356992fe 12/28/2011 07:56 PM Ben Noordhuis

isolates: isolate-ify the main loop

1865b11d 12/16/2011 04:57 PM Ryan Dahl

Merge remote branch 'origin/v0.6'

Conflicts:
wscript

4b123f9c 12/16/2011 08:35 AM Roman Shtylman

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.

cc2861ee 12/15/2011 08:26 PM Ben Noordhuis

crypto: don't ignore DH init errors

ef12fa1b 12/13/2011 09:18 PM Ben Noordhuis

crypto: deduplicate encoding parsing logic

321ec97d 12/13/2011 08:32 PM Ben Noordhuis

crypto: deduplicate decipher logic

77f21787 12/13/2011 03:22 PM Ben Noordhuis

crypto: fix memory leak when decrypting empty strings

Also fixes a dangling pointer delete[] in the error path.

d70ef199 12/13/2011 12:08 PM Ben Noordhuis

crypto: fix memory leaks in PBKDF2 error path

c5e51cea 12/08/2011 06:58 PM Ryan Dahl

Move lock back to node_crypto.cc

e10fd321 12/07/2011 09:03 PM Ryan Dahl

move global vars from platfrom, node_signal_watcher to struct

e53e9c72 12/07/2011 06:44 PM Ryan Dahl

move global vars for node_file.cc, node_zlib.cc, and node_crypto.cc

49ba55b1 12/02/2011 10:34 AM Ben Noordhuis

Merge branch 'v0.6'

Conflicts:
src/node_version.h

f44d0b90 11/30/2011 08:27 AM Ben Noordhuis

crypto: throw exception on unknown digest method

Fixes #2227.

26038321 11/29/2011 07:29 PM Ingmar Runge

node_crypto: use EVP_Cipher*_ex methods, not 'obsolete' versions

This also fixes an issue that made blowfish's ECB mode unusable.

85959811 11/22/2011 04:01 PM Ryan Dahl

Merge remote branch 'origin/v0.6'

Conflicts:
Makefile
src/node_version.h
test/simple/test-crypto.js

a808ab4a 11/18/2011 07:07 AM Ben Noordhuis

crypto: use the libuv rwlock API

9d3faf4f 11/17/2011 05:01 PM Ben Noordhuis

crypto: add support for RSA public key signing/verification

3ac5f110 11/17/2011 05:01 PM Ben Noordhuis

crypto: make verify() return true or false, not 1 or 0

It's what the documentation says it should return.

534e41b4 11/17/2011 03:17 PM Ben Noordhuis

crypto: make verify() return true or false, not 1 or 0

It's what the documentation says it should return.

cf2ee190 11/15/2011 04:56 PM Ben Noordhuis

crypto: fix 'var may be used uninitialized' compiler warnings

cdcb1118 11/09/2011 10:34 AM Ben Noordhuis

Remove stray NODE_MODULE() semi-colons.

efb833f3 11/08/2011 02:56 PM Ben Noordhuis

crypto: use the right mutex

97cada0e 11/08/2011 02:04 PM Ben Noordhuis

crypto: make module thread-safe

189dd8f8 11/04/2011 11:24 AM Bert Belder

Fix line endings and trailing whitespace

f53d092a 10/31/2011 04:36 AM koichik

tls, https: add passphrase option

Fixes #1925.

19a85538 10/14/2011 11:54 AM koichik

tls: requestCert unusable with Firefox and Chrome

Fixes #1516.

c4eaf7e5 09/27/2011 02:27 PM Ben Noordhuis

crypto: implement randomBytes() and pseudoRandomBytes()

320cf729 09/20/2011 07:58 PM Ben Noordhuis

crypto: fix delete of potentially uninitialized pointer

b185751c 09/20/2011 07:58 PM Ben Noordhuis

crypto: fix read of potentially uninitialized variable

44bebc0d 09/20/2011 02:12 AM Ben Noordhuis

crypto: look up SSL errors with ERR_print_errors()

0ad28fdd 09/16/2011 01:16 PM Ben Noordhuis

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.

1b0a5cba 09/15/2011 06:08 PM Ryan Dahl

Merge remote branch 'origin/v0.4'

6312e889 09/15/2011 06:04 PM Ryan Dahl

Drain OpenSSL error queue? Addresses #1719

63877362 09/07/2011 02:02 PM Ben Noordhuis

tls: new[] instead of malloc() in Connection::GetSession()

eb99083d 09/07/2011 02:01 PM Sean Cunningham

tls: add client-side session resumption support

28a90847 09/02/2011 11:53 AM koichik

crypto: Fix BIO's usage.

Fixes #1612.
Fixes #1296.

5ded5e27 09/02/2011 11:49 AM Ben Noordhuis

crypto: use X509_get_ext_by_NID(NID_subject_alt_name)

7b2536a1 09/02/2011 11:49 AM Niclas Hoyer

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

84cf0c52 08/31/2011 07:11 PM Ryan Dahl

crypto: set data before sending to thread pool

fixes test-crypto

21cc4c49 08/31/2011 04:53 AM Ryan Dahl

Upgrade libuv to ea4271f

Required adding uv_default_loop() in many places.

6f606838 08/30/2011 02:47 PM koichik

tls: x509 certificate subject parsing fail

Fixes #1568.

bce41fac 08/30/2011 04:36 AM Igor Zinkovsky

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.

0110c903 08/22/2011 02:30 PM Peter Bright

Upgrade to 0.9.8r.

Build in Win32.

97287235 08/14/2011 08:30 PM Bert Belder

node_crypto: interface with libuv, not libev

04122ad2 08/12/2011 10:23 AM Glen Low

crypto: PBKDF2 function from OpenSSL

421b6e89 08/09/2011 05:56 PM Tom Hughes

crypto: fix incorrect ssl shutdown check

94db871e 08/09/2011 05:54 PM Tom Hughes

crypto: fix incorrect ssl shutdown check

9010f5fb 07/29/2011 07:57 PM Fedor Indutny

Add support for TLS SNI

Fixes #1411

d3a84bea 07/26/2011 06:19 PM SAWADA Tadashi

Fix crypto encryption/decryption with Base64.

Fixes #738.
Fixes #1205.

db993956 07/24/2011 06:48 AM Stefan Bühler

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).

e357acc5 07/23/2011 08:56 AM SAWADA Tadashi

Fix crypto encryption/decryption with Base64.

Fixes #738.
Fixes #1205.

6f0740e6 07/20/2011 04:24 PM Ben Noordhuis

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.

23b8931b 06/29/2011 08:50 AM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
src/node.js
src/node_version.h

7c51275b 06/15/2011 02:02 PM Mark Cavage

Cleanup crypto verify to not print unnecessary errors

3d7d994f 06/15/2011 08:43 AM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
doc/api/modules.markdown
test/simple/test-crypto.js

88552c51 06/14/2011 06:50 AM Mark Cavage

Support for signature verification with RSA/DSA public keys

Fixes #1166.

b6a742d7 06/03/2011 10:37 AM Ryan Dahl

Merge branch 'v0.4'

1d7a46a5 06/03/2011 08:50 AM Ryan Dahl

Disabling SSL compression is dependent on OpenSSL version 0.9.8

Fixes #1087.

f23c45f7 06/03/2011 02:37 AM Jérémy Lal

Option to disable SSL v2

Fixes #880

eb4c9ed8 05/25/2011 02:36 AM Ben Noordhuis

Fix resource leaks in node_crypto.cc

Fixes #1097.

85bc8d02 05/16/2011 10:29 PM Ryan Dahl

Merge branch 'v0.4'

Conflicts:
src/node_crypto.cc

e83c6959 05/16/2011 01:33 PM Ryan Dahl

Disable compression with OpenSSL.

This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.

9f0b1a9b 05/06/2011 05:36 PM Håvard Stranden

Add Diffie-Hellman support to crypto module

Fixes #573

c9b40da3 04/19/2011 02:32 PM Fedor Indutny

OpenSSL NPN in node.js

closes #926.

2a88dd3b 04/13/2011 09:25 PM Theo Schlossnagle

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.

a7254f3d 04/01/2011 03:38 PM Ryan Dahl

Revert "Disable compression with OpenSSL."

This reverts commit 362785f704b5754f6025bc4bcbe5835688d3002c.

362785f7 04/01/2011 12:49 PM Ryan Dahl

Disable compression with OpenSSL.

This improves memory and speed. Users may apply compression in "userland"
above the CryptoStream layer if they desire.

5c35dff4 04/01/2011 02:40 AM Ryan Dahl

Don't load root certs for each SSL context

55048cdf 03/14/2011 08:37 PM Ryan Dahl

Update copyright headers