Skip to content
Snippets Groups Projects
Commit 62afbbe1 authored by Steven Fackler's avatar Steven Fackler
Browse files

Initialize OpenSSL before FIPS_mode_set

Otherwise you don't actually get any errors!
parent 58319285
Branches
Tags
No related merge requests found
......@@ -10,6 +10,7 @@ use crate::error::ErrorStack;
///
/// This corresponds to `FIPS_mode_set`.
pub fn enable(enabled: bool) -> Result<(), ErrorStack> {
ffi::init();
unsafe { cvt(ffi::FIPS_mode_set(enabled as _)).map(|_| ()) }
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment