From 6a95e9f7e01b06e5318ef01b0be7bbc00ef43a3d Mon Sep 17 00:00:00 2001 From: Swaagie Date: Wed, 15 Oct 2014 11:08:33 +0200 Subject: [PATCH] tls add secureOptions documentation PR-URL: https://github.com/joyent/node/pull/8553 Reviewed-By: Fedor Indutny --- doc/api/tls.markdown | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/api/tls.markdown b/doc/api/tls.markdown index f834a8374d6..68e7a099a5c 100644 --- a/doc/api/tls.markdown +++ b/doc/api/tls.markdown @@ -171,6 +171,10 @@ automatically set as a listener for the [secureConnection][] event. The SSL version 3. The possible values depend on your installation of OpenSSL and are defined in the constant [SSL_METHODS][]. + - `secureOptions`: Set server options. For example, to disable the SSLv3 + protocol set the `SSL_OP_NO_SSLv3` flag. See [SSL_CTX_set_options] + for all available options. + Here is a simple example echo server: var tls = require('tls'); @@ -569,3 +573,4 @@ The numeric representation of the remote port. For example, `443`. [Stream]: stream.html#stream_stream [SSL_METHODS]: http://www.openssl.org/docs/ssl/ssl.html#DEALING_WITH_PROTOCOL_METHODS [tls.Server]: #tls_class_tls_server +[SSL_CTX_set_options]: https://www.openssl.org/docs/ssl/SSL_CTX_set_options.html \ No newline at end of file