summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
authorAntoine du HAMEL <duhamelantoine1995@gmail.com>2018-06-25 23:31:43 +0200
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2018-07-13 17:47:13 +0300
commitd2ee7d64aa3afd593ec8c0b14f497244403c5589 (patch)
treec78d8e611b0123e245b6e529538dfa54d2fb976b /lib/crypto.js
parent3950a3e0b1319c6cae49f674b7f82a491ea09093 (diff)
downloadandroid-node-v8-d2ee7d64aa3afd593ec8c0b14f497244403c5589.tar.gz
android-node-v8-d2ee7d64aa3afd593ec8c0b14f497244403c5589.tar.bz2
android-node-v8-d2ee7d64aa3afd593ec8c0b14f497244403c5589.zip
crypto: remove deprecated legacy API
The `crypto.Credentials` legacy API has been Runtime deprecated since v0.11.13 and users had been adviced to use `tls.SecureContext` instead. PR-URL: https://github.com/nodejs/node/pull/21153 Fixes: https://github.com/nodejs/node/issues/20793 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 98261c88e5..b085f99f85 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -228,23 +228,5 @@ Object.defineProperties(exports, {
configurable: false,
enumerable: true,
value: constants
- },
-
- // Legacy API
- createCredentials: {
- configurable: true,
- enumerable: true,
- get: deprecate(() => {
- return require('tls').createSecureContext;
- }, 'crypto.createCredentials is deprecated. ' +
- 'Use tls.createSecureContext instead.', 'DEP0010')
- },
- Credentials: {
- configurable: true,
- enumerable: true,
- get: deprecate(function() {
- return require('tls').SecureContext;
- }, 'crypto.Credentials is deprecated. ' +
- 'Use tls.SecureContext instead.', 'DEP0011')
}
});