summaryrefslogtreecommitdiff
path: root/test/parallel/test-tls-server-verify.js
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2016-05-02 10:27:12 -0700
committerJames M Snell <jasnell@gmail.com>2016-05-17 11:05:18 -0700
commitdcccbfdc799d174901c29d82874457367231fec5 (patch)
treebb1a45d053b169af0b1662000d57e034e4422996 /test/parallel/test-tls-server-verify.js
parentf856234ffaa10441545c3b6ce420b247a17c06cf (diff)
downloadandroid-node-v8-dcccbfdc799d174901c29d82874457367231fec5.tar.gz
android-node-v8-dcccbfdc799d174901c29d82874457367231fec5.tar.bz2
android-node-v8-dcccbfdc799d174901c29d82874457367231fec5.zip
src: refactor require('constants')
The require('constants') module is currently undocumented and mashes together unrelated constants. This refactors the require('constants') in favor of distinct os.constants, fs.constants, and crypto.constants that are specific to the modules for which they are relevant. The next step is to document those within the specific modules. PR-URL: https://github.com/nodejs/node/pull/6534 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Robert Lindstaedt <robert.lindstaedt@gmail.com>
Diffstat (limited to 'test/parallel/test-tls-server-verify.js')
-rw-r--r--test/parallel/test-tls-server-verify.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/parallel/test-tls-server-verify.js b/test/parallel/test-tls-server-verify.js
index f1a6132a66..7510803b69 100644
--- a/test/parallel/test-tls-server-verify.js
+++ b/test/parallel/test-tls-server-verify.js
@@ -104,7 +104,9 @@ if (!common.hasCrypto) {
}
var tls = require('tls');
-var constants = require('constants');
+const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION =
+ require('crypto').constants.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION;
+
var assert = require('assert');
var fs = require('fs');
var spawn = require('child_process').spawn;
@@ -262,7 +264,7 @@ function runTest(port, testIndex) {
*/
if (tcase.renegotiate) {
serverOptions.secureOptions =
- constants.SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION;
+ SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION;
}
var renegotiated = false;