Skip to content

Commit

Permalink
adapt api
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianLars committed Nov 30, 2023
1 parent 77e4043 commit 4af1db1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/authenticator/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ once_cell = "1"
sha2 = "0.10"
base64 = "0.21"
chrono = "0.4"
bytes = "1.5"
bytes = "1"
byteorder = "1"
openssl = "0.10"

Expand Down
4 changes: 2 additions & 2 deletions plugins/authenticator/src/u2f_crate/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub fn parse_sign_response(

let mut msg = vec![];
msg.put(app_id_hash.as_ref());
msg.put(*user_presence_flag);
msg.put_u8(*user_presence_flag);
msg.put(counter);
msg.put(client_data_hash.as_ref());

Expand All @@ -61,5 +61,5 @@ pub fn parse_sign_response(

fn get_counter(counter: &[u8]) -> u32 {
let mut buf = Cursor::new(counter);
buf.get_u32_be()
buf.get_u32()
}

0 comments on commit 4af1db1

Please sign in to comment.