Skip to content

Commit

Permalink
FFI get_public_key
Browse files Browse the repository at this point in the history
  • Loading branch information
mlitchard committed May 17, 2022
1 parent efa79bb commit eff14b6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion rustbits/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,15 @@ pub fn put_ed_key_internal(
)
.expect("could not put the key");
}
/// # Safety
///
/// To Do -mlitchard
pub unsafe extern "C" fn get_public_key(kid: u16,result: *mut u8,testing_mock: bool) {
let connector = make_connector(testing_mock);
let client: Client = create_client(connector).expect("could not connect to YubiHSM");
get_public_key_internal(&client, kid, result)


}
/// # Safety
///
/// To Do -mlitchard
Expand Down

0 comments on commit eff14b6

Please sign in to comment.