summaryrefslogtreecommitdiff
path: root/lib/_tls_common.js
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2018-09-19 19:40:44 +0200
committerDaniel Bevenius <daniel.bevenius@gmail.com>2018-09-24 07:26:08 +0200
commit4da11f2dc5df6ccdcfefed2bd2cf26221e176185 (patch)
treec2fda448e20b74605cf593ca2ead212f1eaa70ea /lib/_tls_common.js
parent2790db5e3d74c4f7521cc27a1115228700dd4049 (diff)
downloadandroid-node-v8-4da11f2dc5df6ccdcfefed2bd2cf26221e176185.tar.gz
android-node-v8-4da11f2dc5df6ccdcfefed2bd2cf26221e176185.tar.bz2
android-node-v8-4da11f2dc5df6ccdcfefed2bd2cf26221e176185.zip
tls: fix DEP0083 after upgrading to OpenSSL 1.1.0
Setting ecdhCurve to false is already unsupported, so the deprecation should already be EOL. The test was skipped ever since we upgraded to OpenSSL 1.1.0. PR-URL: https://github.com/nodejs/node/pull/22953 Refs: https://github.com/nodejs/node/pull/16130 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r--lib/_tls_common.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index 12896b294c..2401bd0b4b 100644
--- a/lib/_tls_common.js
+++ b/lib/_tls_common.js
@@ -69,16 +69,6 @@ function validateKeyCert(name, value) {
exports.SecureContext = SecureContext;
-function ecdhCurveWarning() {
- if (ecdhCurveWarning.emitted) return;
- process.emitWarning('{ ecdhCurve: false } is deprecated.',
- 'DeprecationWarning',
- 'DEP0083');
- ecdhCurveWarning.emitted = true;
-}
-ecdhCurveWarning.emitted = false;
-
-
exports.createSecureContext = function createSecureContext(options, context) {
if (!options) options = {};
@@ -154,8 +144,6 @@ exports.createSecureContext = function createSecureContext(options, context) {
c.context.setECDHCurve(tls.DEFAULT_ECDH_CURVE);
else if (options.ecdhCurve)
c.context.setECDHCurve(options.ecdhCurve);
- else
- ecdhCurveWarning();
if (options.dhparam) {
const warning = c.context.setDHParam(options.dhparam);