Skip to content

Commit

Permalink
Avoid warnings about unused functions in FIPS tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Jelen <[email protected]>
  • Loading branch information
Jakuje committed Jan 6, 2025
1 parent d4ae28d commit a7b35f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,14 +478,14 @@ fn force_load_config() -> CK_RV {
return CKR_OK;
}

#[cfg(test)]
#[cfg(all(test, feature = "eddsa"))]
fn get_ec_point_encoding(save: &mut config::EcPointEncoding) -> CK_RV {
let gconf = global_rlock!(noinitcheck CONFIG);
*save = gconf.conf.ec_point_encoding;
CKR_OK
}

#[cfg(test)]
#[cfg(all(test, feature = "eddsa"))]
fn set_ec_point_encoding(val: config::EcPointEncoding) -> CK_RV {
let mut gconf = global_wlock!(noinitcheck CONFIG);
gconf.conf.ec_point_encoding = val;
Expand Down

0 comments on commit a7b35f3

Please sign in to comment.