Skip to content

Commit

Permalink
lakers-c: fixing c wrapper for message_4
Browse files Browse the repository at this point in the history
  • Loading branch information
ElsaLopez133 committed Nov 3, 2024
1 parent 95b7958 commit b2773c3
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lakers-c/src/initiator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,11 @@ pub unsafe extern "C" fn initiator_process_message_4(
ead_4_c_out: *mut EADItemC,
) -> i8 {
// this is a parsing function, so all output parameters are mandatory
if initiator_c.is_null()
|| message_4.is_null()
|| ead_4_c_out.is_null()
{
if initiator_c.is_null() || message_4.is_null() || ead_4_c_out.is_null() {
return -1;
}
let crypto = &mut default_crypto();

let mut state = core::ptr::read(&(*initiator_c).wait_m4);

let result = match i_process_message_4(&mut state, crypto, &(*message_4)) {
Expand Down

0 comments on commit b2773c3

Please sign in to comment.