mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
fix(ext/node): stub getFipsCrypto
to false
(#29485)
This makes Deno act as a non-FIPS compliant build of Node.js to node modules.
This commit is contained in:
parent
b2f668550d
commit
342ea09135
1 changed files with 5 additions and 4 deletions
|
@ -1,14 +1,15 @@
|
||||||
// Copyright 2018-2025 the Deno authors. MIT license.
|
// Copyright 2018-2025 the Deno authors. MIT license.
|
||||||
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
|
// Copyright Joyent, Inc. and Node.js contributors. All rights reserved. MIT license.
|
||||||
|
|
||||||
import { notImplemented } from "ext:deno_node/_utils.ts";
|
|
||||||
|
|
||||||
export { timingSafeEqual } from "ext:deno_node/internal_binding/_timingSafeEqual.ts";
|
export { timingSafeEqual } from "ext:deno_node/internal_binding/_timingSafeEqual.ts";
|
||||||
|
import { primordials } from "ext:core/mod.js";
|
||||||
|
|
||||||
|
const { Error } = primordials;
|
||||||
|
|
||||||
export function getFipsCrypto(): boolean {
|
export function getFipsCrypto(): boolean {
|
||||||
notImplemented("crypto.getFipsCrypto");
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function setFipsCrypto(_fips: boolean) {
|
export function setFipsCrypto(_fips: boolean) {
|
||||||
notImplemented("crypto.setFipsCrypto");
|
throw new Error("FIPS mode is not supported in Deno.");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue