Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing totalRPs field when no RK are registered #75

Open
szszszsz opened this issue Mar 27, 2023 · 0 comments
Open

Missing totalRPs field when no RK are registered #75

szszszsz opened this issue Mar 27, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@szszszsz
Copy link
Member

If there are no RK registered on the device, then on credential listing attempt the device returns invalid CBOR structure, missing totalRPs field. The latter should always be shown, even when equal to 0.

Related: Nitrokey/pynitrokey#336 (comment)

if (rp_count > 0)
{
ret = cbor_encode_int(&map, 5);
check_ret(ret);
ret = cbor_encode_int(&map, rp_count);
check_ret(ret);
}

@szszszsz szszszsz added the bug Something isn't working label Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant