★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/cf4f188fd6Nouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
doc: fix return type of crypto.getFips()
`crypto.getFips()` returns a number, not a boolean.

PR-URL: #32580
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Signed-off-by: Richard Lau <riclau@uk.ibm.com>
  • Loading branch information
richardlau authored and targos committed Apr 11, 2020
1 parent e01d061 commit cf4f188fd69ae64b1ff5c32f556349f99880a433
Showing with 2 additions and 2 deletions.
  1. +2 −2 doc/api/crypto.md
@@ -2308,8 +2308,8 @@ console.log(aliceSecret === bobSecret);
added: v10.0.0
-->

* Returns: {boolean} `true` if and only if a FIPS compliant crypto provider is
currently in use.
* Returns: {number} `1` if and only if a FIPS compliant crypto provider is
currently in use, `0` otherwise.

### `crypto.getHashes()`
<!-- YAML

0 comments on commit cf4f188

Please sign in to comment.