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

Fix error throwing logic #205

Merged
merged 1 commit into from
Aug 16, 2024

Conversation

Alawaji214
Copy link
Contributor

the condition before throwing Error::ObjectClassNotSupported check if the key classequal other AND public key on the same time which doesn't make sense and doesn't work for either case, the logic should be OR.

@ansiwen ansiwen force-pushed the Fix_key_class_error_throwing branch from 2243987 to de623db Compare August 16, 2024 00:09
@ansiwen
Copy link
Collaborator

ansiwen commented Aug 16, 2024

LGTM, good catch, thank you!

@ansiwen ansiwen merged commit a44281a into Nitrokey:main Aug 16, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants