node/doc
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
..
api tls: add --tls-cipher-list command line switch 2015-08-23 08:52:01 -07:00
api_assets tools: fix anchors in generated documents 2015-08-23 00:15:18 +05:30
tsc-meetings doc: add TSC meeting minutes 2015-07-29 2015-08-22 20:07:24 +10:00
full-white-stripe.jpg build: add iojs installer assets for win & osx 2015-01-14 02:57:59 +01:00
iojs.1 tls: add --tls-cipher-list command line switch 2015-08-23 08:52:01 -07:00
osx_installer_logo.png build: add new installer config for OS X 2015-01-16 14:04:15 +11:00
releases.md doc: document current release procedure 2015-07-07 12:32:22 +10:00
template.html doc: fix 404s for syntax highlighting js 2015-01-15 10:09:24 -08:00
thin-white-stripe.jpg build: add iojs installer assets for win & osx 2015-01-14 02:57:59 +01:00