0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/doc/api
James M Snell 5ba868f024 tls: add --tls-cipher-list command line switch
This adds a new `--tls-cipher-list` command line switch
that can be used to override the built-in default cipher
list. The intent of this is to make it possible to enforce
an alternative default cipher list at the process level.
Overriding the default cipher list is still permitted at
the application level by changing the value of
`require('tls').DEFAULT_CIPHERS`.

As part of the change, the built in default list is moved
out of tls.js and into node_constants.h and node_constants.cc.
Two new constants are added to require('constants'):

  * defaultCipherList (the active default cipher list)
  * defaultCoreCipherList (the built-in default cipher list)

A test case and doc changes are included.

A new NODE_DEFINE_STRING_CONSTANT macro is also created in
node_internals.h

When node_constants is initialized, it will pick up either
the passed in command line switch or fallback to the default
built-in suite.

Within joyent/node, this change had originaly been wrapped
up with a number of other related commits involving the
removal of the RC4 cipher. This breaks out this isolated
change.

/cc @mhdawson, @misterdjules, @trevnorris, @indutny, @rvagg

Reviewed By: Ben Noordhuis <ben@strongloop.com>
PR-URL: https://github.com/nodejs/node/pull/2412
2015-08-23 08:52:01 -07:00
..
_toc.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
addons.markdown docs: link to more up-to-date v8 docs 2015-07-16 15:57:06 -07:00
all.markdown deps: update v8 to 4.4.63.9 2015-08-04 11:56:14 -07:00
assert.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
buffer.markdown doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
child_process.markdown doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
cluster.markdown doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
console.markdown doc: document Console class 2015-04-11 06:47:30 +02:00
crypto.markdown doc: add references to crypto.getCurves() 2015-06-09 22:17:55 +02:00
debugger.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
dgram.markdown dgram: make send cb act as "error" event handler 2015-08-04 11:56:12 -07:00
dns.markdown doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
documentation.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
domain.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
errors.markdown doc: change effect to affect in errors.md 2015-02-11 14:24:43 -05:00
events.markdown events: deprecate static listenerCount function 2015-08-20 03:17:08 +05:30
fs.markdown doc: clarify options for fs.watchFile() 2015-08-18 11:07:16 -07:00
globals.markdown doc: update node.js references in api docs 2015-02-07 17:07:15 -05:00
http.markdown doc: document response.finished in http.markdown 2015-08-23 08:48:44 -07:00
https.markdown doc: fix some cross-references 2015-05-02 14:07:21 +02:00
index.markdown
modules.markdown doc: minor clarification in the modules API doc. 2015-06-16 05:42:05 +03:00
net.markdown doc: a listener, not "an" listener 2015-07-28 11:06:14 -07:00
os.markdown os: add homedir() 2015-06-05 22:58:14 -04:00
path.markdown doc,test: empty strings in path module 2015-07-14 08:56:50 -07:00
process.markdown src: introduce process.release object 2015-08-04 11:56:16 -07:00
punycode.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
querystring.markdown doc: add explanations for querystring 2015-03-03 10:03:42 -05:00
readline.markdown repl: add mode detection, cli persistent history 2015-04-30 19:33:05 -07:00
repl.markdown doc: fix heading levels for new repl documentation 2015-08-04 14:07:07 -07:00
stream.markdown doc: multiple documentation updates cherry picked from v0.12 2015-08-05 08:44:55 -07:00
string_decoder.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
synopsis.markdown doc: update node.js references in api docs 2015-02-07 17:07:15 -05:00
timers.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
tls.markdown tls: add --tls-cipher-list command line switch 2015-08-23 08:52:01 -07:00
tty.markdown doc: update stability index 2015-02-27 14:23:01 -08:00
url.markdown doc: state url decoding behavior 2015-05-25 13:50:53 +02:00
util.markdown doc: fix util.deprecate example 2015-04-28 10:12:13 -04:00
v8.markdown src: add total_available_size to v8 statistics 2015-08-11 22:51:50 +02:00
vm.markdown doc: fix vm module examples 2015-03-13 23:14:20 +01:00
zlib.markdown doc: update stability index 2015-02-27 14:23:01 -08:00