mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 13:09:21 +01:00
crypto: runtime deprecate crypto.fips
PR-URL: https://github.com/nodejs/node/pull/55019 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com>
This commit is contained in:
parent
02cdf7b809
commit
afe56aa58b
@ -2030,12 +2030,15 @@ or `module.exports` instead.
|
||||
|
||||
<!-- YAML
|
||||
changes:
|
||||
- version: REPLACEME
|
||||
pr-url: https://github.com/nodejs/node/pull/55019
|
||||
description: Runtime deprecation.
|
||||
- version: v10.0.0
|
||||
pr-url: https://github.com/nodejs/node/pull/18335
|
||||
description: Documentation-only deprecation.
|
||||
-->
|
||||
|
||||
Type: Documentation-only
|
||||
Type: Runtime
|
||||
|
||||
The [`crypto.fips`][] property is deprecated. Please use `crypto.setFips()`
|
||||
and `crypto.getFips()` instead.
|
||||
|
@ -330,11 +330,12 @@ function getRandomBytesAlias(key) {
|
||||
}
|
||||
|
||||
ObjectDefineProperties(module.exports, {
|
||||
// crypto.fips is deprecated. DEP0093. Use crypto.getFips()/crypto.setFips()
|
||||
fips: {
|
||||
__proto__: null,
|
||||
get: getFips,
|
||||
set: setFips,
|
||||
get: deprecate(getFips, 'The crypto.fips is deprecated. ' +
|
||||
'Please use crypto.getFips()', 'DEP0093'),
|
||||
set: deprecate(setFips, 'The crypto.fips is deprecated. ' +
|
||||
'Please use crypto.setFips()', 'DEP0093'),
|
||||
},
|
||||
constants: {
|
||||
__proto__: null,
|
||||
|
Loading…
Reference in New Issue
Block a user