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

Support for Bio Multi-protocol keys #157

Merged
merged 4 commits into from
Jun 25, 2024
Merged

Conversation

jensutbult
Copy link
Contributor

No description provided.

@jensutbult jensutbult marked this pull request as ready for review June 24, 2024 11:26
Copy link
Member

@AdamVe AdamVe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found some code snippets to review. 🕵🏻‍♂️

Comment on lines 1 to 7
//
// YKFInvalidPinError.h
// YubiKit
//
// Created by Jens Utbult on 2024-06-19.
// Copyright © 2024 Yubico. All rights reserved.
//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I saw in other files you update this to a different header, maybe you forgot here?

Comment on lines 1 to 7
//
// YKFInvalidPinError.m
// YubiKit
//
// Created by Jens Utbult on 2024-06-19.
// Copyright © 2024 Yubico. All rights reserved.
//
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header is different than in other files.

Comment on lines 957 to 964
int retries = [self getRetriesFromStatusCode:(int)error.code];
if (retries >= 0) {
completion([YKFInvalidPinError invalidPinErrorWithRetries:retries]);
return;
} else {
completion(error);
return;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review this part - if verification of the temporary PIN fails, the error.code will be 0x63C0, so there is no need to get the retries.

@jensutbult jensutbult requested a review from AdamVe June 25, 2024 07:57
Copy link
Member

@AdamVe AdamVe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jensutbult jensutbult merged commit 3b13e95 into main Jun 25, 2024
1 check failed
@jensutbult jensutbult deleted the jens/bio-multi-protocol branch June 25, 2024 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants