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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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(|_| ()) }
}