diff options
author | Antoine du HAMEL <duhamelantoine1995@gmail.com> | 2018-06-25 23:31:43 +0200 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-07-13 17:47:13 +0300 |
commit | d2ee7d64aa3afd593ec8c0b14f497244403c5589 (patch) | |
tree | c78d8e611b0123e245b6e529538dfa54d2fb976b /doc/api/crypto.md | |
parent | 3950a3e0b1319c6cae49f674b7f82a491ea09093 (diff) | |
download | android-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 'doc/api/crypto.md')
-rw-r--r-- | doc/api/crypto.md | 20 |
1 files changed, 0 insertions, 20 deletions
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) -<!-- YAML -added: v0.1.92 -deprecated: v0.11.13 ---> - -> 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]) <!-- YAML added: v0.1.94 @@ -2750,7 +2731,6 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. [`sign.update()`]: #crypto_sign_update_data_inputencoding [`stream.transform` options]: stream.html#stream_new_stream_transform_options [`stream.Writable` options]: stream.html#stream_constructor_new_stream_writable_options -[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options [`verify.update()`]: #crypto_verify_update_data_inputencoding [`verify.verify()`]: #crypto_verify_verify_object_signature_signatureformat [AEAD algorithms]: https://en.wikipedia.org/wiki/Authenticated_encryption |