GeezerVison is showing github.com — crypto: remove deprecated legacy API · nodejs/node@d2ee7d6
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: doc/api/crypto.md -20Lines changed: 0 additions & 20 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1415,25 +1415,6 @@ something has to be unpredictable and unique, but does not have to be secret; | 1415 | 1415 | it is important to remember that an attacker must not be able to predict ahead | 1416 | 1416 | of time what a given IV will be. | 1417 | 1417 |
| 1418 | | -### crypto.createCredentials(details) | 1419 | | -<!-- YAML | 1420 | | -added: v0.1.92 | 1421 | | -deprecated: v0.11.13 | 1422 | | ---> | 1423 | | - | 1424 | | -> Stability: 0 - Deprecated: Use [`tls.createSecureContext()`][] instead. | 1425 | | -
| 1426 | | -- `details` {Object} Identical to [`tls.createSecureContext()`][]. | 1427 | | -- Returns: {tls.SecureContext} | 1428 | | - | 1429 | | -The `crypto.createCredentials()` method is a deprecated function for creating | 1430 | | -and returning a `tls.SecureContext`. It should not be used. Replace it with | 1431 | | -[`tls.createSecureContext()`][] which has the exact same arguments and return | 1432 | | -value. | 1433 | | - | 1434 | | -Returns a `tls.SecureContext`, as-if [`tls.createSecureContext()`][] had been | 1435 | | -called. | 1436 | | - | 1437 | 1418 | ### crypto.createDecipher(algorithm, password[, options]) | 1438 | 1419 | <!-- YAML | 1439 | 1420 | added: v0.1.94 | @@ -2750,7 +2731,6 @@ the `crypto`, `tls`, and `https` modules and are generally specific to OpenSSL. | 2750 | 2731 | [`sign.update()`]: #crypto_sign_update_data_inputencoding | 2751 | 2732 | [`stream.transform` options]: stream.html#stream_new_stream_transform_options | 2752 | 2733 | [`stream.Writable` options]: stream.html#stream_constructor_new_stream_writable_options | 2753 | | -[`tls.createSecureContext()`]: tls.html#tls_tls_createsecurecontext_options | 2754 | 2734 | [`verify.update()`]: #crypto_verify_update_data_inputencoding | 2755 | 2735 | [`verify.verify()`]: #crypto_verify_verify_object_signature_signatureformat | 2756 | 2736 | [AEAD algorithms]: https://en.wikipedia.org/wiki/Authenticated_encryption | |
Collapse file Copy file name to clipboardExpand all lines: doc/api/deprecations.md +4-5Lines changed: 4 additions & 5 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -142,17 +142,17 @@ undefined `digest` will throw a `TypeError`. | 142 | 142 | <a id="DEP0010"></a> | 143 | 143 | ### DEP0010: crypto.createCredentials | 144 | 144 |
| 145 | | -Type: Runtime | | 145 | +Type: End-of-Life | 146 | 146 |
| 147 | | -The [`crypto.createCredentials()`][] API is deprecated. Please use | | 147 | +The `crypto.createCredentials()` API was removed. Please use | 148 | 148 | [`tls.createSecureContext()`][] instead. | 149 | 149 |
| 150 | 150 | <a id="DEP0011"></a> | 151 | 151 | ### DEP0011: crypto.Credentials | 152 | 152 |
| 153 | | -Type: Runtime | | 153 | +Type: End-of-Life | 154 | 154 |
| 155 | | -The `crypto.Credentials` class is deprecated. Please use [`tls.SecureContext`][] | | 155 | +The `crypto.Credentials` class was removed. Please use [`tls.SecureContext`][] | 156 | 156 | instead. | 157 | 157 |
| 158 | 158 | <a id="DEP0012"></a> | @@ -1020,7 +1020,6 @@ The option `produceCachedData` has been deprecated. Use | 1020 | 1020 | [`console.log()`]: console.html#console_console_log_data_args | 1021 | 1021 | [`crypto.createCipher()`]: crypto.html#crypto_crypto_createcipher_algorithm_password_options | 1022 | 1022 | [`crypto.createCipheriv()`]: crypto.html#crypto_crypto_createcipheriv_algorithm_key_iv_options | 1023 | | -[`crypto.createCredentials()`]: crypto.html#crypto_crypto_createcredentials_details | 1024 | 1023 | [`crypto.createDecipher()`]: crypto.html#crypto_crypto_createdecipher_algorithm_password_options | 1025 | 1024 | [`crypto.createDecipheriv()`]: crypto.html#crypto_crypto_createdecipheriv_algorithm_key_iv_options | 1026 | 1025 | [`crypto.DEFAULT_ENCODING`]: crypto.html#crypto_crypto_default_encoding | |
Collapse file Copy file name to clipboardExpand all lines: lib/crypto.js -18Lines changed: 0 additions & 18 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -228,23 +228,5 @@ Object.defineProperties(exports, { | 228 | 228 | configurable: false, | 229 | 229 | enumerable: true, | 230 | 230 | value: constants | 231 | | - }, | 232 | | - | 233 | | - // Legacy API | 234 | | - createCredentials: { | 235 | | - configurable: true, | 236 | | - enumerable: true, | 237 | | - get: deprecate(() => { | 238 | | - return require('tls').createSecureContext; | 239 | | - }, 'crypto.createCredentials is deprecated. ' + | 240 | | - 'Use tls.createSecureContext instead.', 'DEP0010') | 241 | | - }, | 242 | | - Credentials: { | 243 | | - configurable: true, | 244 | | - enumerable: true, | 245 | | - get: deprecate(function() { | 246 | | - return require('tls').SecureContext; | 247 | | - }, 'crypto.Credentials is deprecated. ' + | 248 | | - 'Use tls.SecureContext instead.', 'DEP0011') | 249 | 231 | } | 250 | 232 | }); |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-crypto-classes.js -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -19,7 +19,6 @@ const TEST_CASES = { | 19 | 19 | 'DiffieHellman': [1024], | 20 | 20 | 'DiffieHellmanGroup': ['modp5'], | 21 | 21 | 'ECDH': ['prime256v1'], | 22 | | - 'Credentials': [] | 23 | 22 | }; | 24 | 23 |
| 25 | 24 | if (!common.hasFipsCrypto) { | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-crypto-deprecated.js -22Lines changed: 0 additions & 22 deletions
|