Skip to content

Commit

Permalink
shared: adding WaitM4 to cbindgen
Browse files Browse the repository at this point in the history
  • Loading branch information
ElsaLopez133 committed Nov 19, 2024
1 parent 815c2a4 commit 628266e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
3 changes: 1 addition & 2 deletions examples/coap/src/bin/coapserver-coaphandler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ impl coap_handler::Handler for EdhocHandler {
render_error(e)
})?;

let ead_4 = None;
let (mut responder, message_4) = responder.prepare_message_4(&ead_4).unwrap();
let (mut responder, message_4) = responder.prepare_message_4(&None).unwrap();
println!("EDHOC exchange successfully completed");
println!("PRK_out: {:02x?}", prk_out);

Expand Down
2 changes: 1 addition & 1 deletion shared/cbindgen.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ include = [
"EdhocBuffer", "BufferKid", "BufferCred", "BufferIdCred",
"CredentialKey", "CredentialType", "IdCred",
"CredentialTransfer",
"InitiatorStart", "WaitM2", "Completed", "ProcessedM2",
"InitiatorStart", "WaitM2", "Completed", "ProcessedM2", "WaitM4",
"EdhocInitiatorC", "EdhocInitiatorWaitM2C", "EdhocInitiatorProcessingM2C", "EdhocInitiatorProcessedM2C", "EdhocInitiatorDoneC",
]
1 change: 1 addition & 0 deletions shared/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ pub struct ProcessedM3 {
}

#[derive(Default, Debug)]
#[repr(C)]
pub struct WaitM4 {
pub prk_4e3m: BytesHashLen,
pub th_4: BytesHashLen,
Expand Down

0 comments on commit 628266e

Please sign in to comment.