Skip to content

Commit 6c681a4

Browse files
noxghedo
authored andcommitted
Remove boring::fips::enable (fixes #150)
In boringssl, FIPS_mode_set is more or less useless, and it doesn't even set an error stack at all on failure, so there is no point using it instead of FIPS_mode.
1 parent ea96015 commit 6c681a4

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

boring/src/fips.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,8 @@
33
//! See [OpenSSL's documentation] for details.
44
//!
55
//! [OpenSSL's documentation]: https://www.openssl.org/docs/fips/UserGuide-2.0.pdf
6-
use crate::cvt;
7-
use crate::error::ErrorStack;
86
use crate::ffi;
97

10-
/// Moves the library into or out of the FIPS 140-2 mode of operation.
11-
///
12-
/// This corresponds to `FIPS_mode_set`.
13-
pub fn enable(enabled: bool) -> Result<(), ErrorStack> {
14-
unsafe { cvt(ffi::FIPS_mode_set(enabled as _)).map(|_| ()) }
15-
}
16-
178
/// Determines if the library is running in the FIPS 140-2 mode of operation.
189
///
1910
/// This corresponds to `FIPS_mode`.

0 commit comments

Comments
 (0)