summaryrefslogtreecommitdiff
path: root/src/u2f.c
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2020-02-23 15:31:23 +0100
committerNicolas Braud-Santoni <nicolas@braud-santoni.eu>2020-02-23 15:34:39 +0100
commit399de849155d9d77d1a5b325afa4b75550c55fb4 (patch)
tree7a04c6a11d4a92e12e0dfa5c3d6471ebd74af4dd /src/u2f.c
parent28215e6c161c70cb1bcae7d01195fefcffb09d32 (diff)
parentc923f422b1e455bdd8ec3bdb10d005e3bfbacfe0 (diff)
Update upstream source from tag 'upstream/1.3.1'
Update to upstream version '1.3.1' with Debian dir 96d0ec6cfbe8efa2e15111ccc5e79c78bd725385
Diffstat (limited to 'src/u2f.c')
-rw-r--r--src/u2f.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/u2f.c b/src/u2f.c
index 3f2d9aa..82b289f 100644
--- a/src/u2f.c
+++ b/src/u2f.c
@@ -439,7 +439,7 @@ encode_cred_authdata(const char *rp_id, const uint8_t *kh, uint8_t kh_len,
439 authdata.sigcount = 0; 439 authdata.sigcount = 0;
440 440
441 memset(&attcred_raw.aaguid, 0, sizeof(attcred_raw.aaguid)); 441 memset(&attcred_raw.aaguid, 0, sizeof(attcred_raw.aaguid));
442 attcred_raw.id_len = (uint16_t)(kh_len << 8); /* XXX */ 442 attcred_raw.id_len = htobe16(kh_len);
443 443
444 len = authdata_blob.len = sizeof(authdata) + sizeof(attcred_raw) + 444 len = authdata_blob.len = sizeof(authdata) + sizeof(attcred_raw) +
445 kh_len + pk_blob.len; 445 kh_len + pk_blob.len;