diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2012-10-08 01:22:44 +0200 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-10-09 16:38:00 +0200 |
commit | 0ad005852c7bd7e896c9c94ae5284493aa35cb83 (patch) | |
tree | 652d0519192f49a5e5ac9a8ab2071ab2445a02b0 /doc | |
parent | 7394e89ff6167cf371e17cb43ff8d5c2f10d539c (diff) | |
download | nodejs-0ad005852c7bd7e896c9c94ae5284493aa35cb83.tar.gz nodejs-0ad005852c7bd7e896c9c94ae5284493aa35cb83.tar.bz2 nodejs-0ad005852c7bd7e896c9c94ae5284493aa35cb83.zip |
https: fix renegotation attack protection
Listen for the 'clientError' event that is emitted when a renegotation attack
is detected and close the connection.
Fixes test/pummel/test-https-ci-reneg-attack.js
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/http.markdown | 5 | ||||
-rw-r--r-- | doc/api/tls.markdown | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/doc/api/http.markdown b/doc/api/http.markdown index bcc1111d4..61121166e 100644 --- a/doc/api/http.markdown +++ b/doc/api/http.markdown @@ -127,10 +127,13 @@ sent to the server on that socket. ### Event: 'clientError' -`function (exception) { }` +`function (exception, socket) { }` If a client connection emits an 'error' event - it will forwarded here. +`socket` is the `net.Socket` object that the error originated from. + + ### server.listen(port, [hostname], [backlog], [callback]) Begin accepting connections on the specified port and hostname. If the diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index 4d8b7f1da..d8392ed24 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -367,11 +367,13 @@ SNI. ### Event: 'clientError' -`function (exception) { }` +`function (exception, securePair) { }` When a client connection emits an 'error' event before secure connection is established - it will be forwarded here. +`securePair` is the `tls.SecurePair` that the error originated from. + ### Event: 'newSession' |