Skip to content

Improve smart card credentials handling #241

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

Merged
merged 2 commits into from
May 16, 2024
Merged

Conversation

TheBestTvarynka
Copy link
Collaborator

Hi,
In this pull request I improved the smart card credentials handling.

cc @awakecoding

@TheBestTvarynka TheBestTvarynka requested a review from CBenoit May 16, 2024 18:01
@TheBestTvarynka TheBestTvarynka self-assigned this May 16, 2024
@awakecoding awakecoding merged commit 2c77fc6 into master May 16, 2024
40 checks passed
@awakecoding awakecoding deleted the fix/scard-creds-handling branch May 16, 2024 19:03
Comment on lines +361 to +365
use winscard::SmartCardInfo;

use crate::sspi::utils::raw_wide_str_trim_nulls;
use crate::utils::str_encode_utf16;
use crate::winscard::scard_context::{DEFAULT_CARD_NAME, MICROSOFT_DEFAULT_CSP};
Copy link
Member

Choose a reason for hiding this comment

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

style: move at the beginning of the function

rationale: it's useful to have imports local to the function, but for readability they should be at the top (not mixed with logic)

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