From d2ee7d64aa3afd593ec8c0b14f497244403c5589 Mon Sep 17 00:00:00 2001 From: Antoine du HAMEL Date: Mon, 25 Jun 2018 23:31:43 +0200 Subject: crypto: remove deprecated legacy API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Ujjwal Sharma Reviewed-By: Anna Henningsen Reviewed-By: Trivikram Kamat Reviewed-By: Tobias Nießen Reviewed-By: Tiancheng "Timothy" Gu Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell --- doc/api/crypto.md | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'doc/api/crypto.md') diff --git a/doc/api/crypto.md b/doc/api/crypto.md index ab33ff3a57..51fa99159f 100644 --- a/doc/api/crypto.md +++ b/doc/api/crypto.md @@ -1415,25 +1415,6 @@ something has to be unpredictable and unique, but does not have to be secret; it is important to remember that an attacker must not be able to predict ahead of time what a given IV will be. -### crypto.createCredentials(details) - - -> Stability: 0 - Deprecated: Use [`tls.createSecureContext()`][] instead. - -- `details` {Object} Identical to [`tls.createSecureContext()`][]. -- Returns: {tls.SecureContext} - -The `crypto.createCredentials()` method is a deprecated function for creating -and returning a `tls.SecureContext`. It should not be used. Replace it with -[`tls.createSecureContext()`][] which has the exact same arguments and return -value. - -Returns a `tls.SecureContext`, as-if [`tls.createSecureContext()`][] had been -called. - ### crypto.createDecipher(algorithm, password[, options])