diff options
author | nicoo <nicoo@debian.org> | 2020-02-23 14:46:35 +0000 |
---|---|---|
committer | nicoo <nicoo@debian.org> | 2020-02-23 14:46:35 +0000 |
commit | f794345c2d734f593da8ed7754e5dbb5809c688d (patch) | |
tree | 32889c9b7bd26656242cc5e4b483c8a1deba88e1 /src/u2f.c | |
parent | 28215e6c161c70cb1bcae7d01195fefcffb09d32 (diff) | |
parent | 400533f0af0b8119c84e574387ed05e500f63861 (diff) |
Merge branch 'prep-v1.3.1-1' into 'debian/sid'
Prepare upload v1.3.1-1
See merge request auth-team/libfido2!3
Diffstat (limited to 'src/u2f.c')
-rw-r--r-- | src/u2f.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |