-
Notifications
You must be signed in to change notification settings - Fork 22
WinSCard FFI implementation #205
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
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
f2d5b21
feat(ffi-types): make SCardBeginTransactionFn and SCardEndTransaction…
TheBestTvarynka d0983a1
feat(ffi): winscard: implement SCardBeginTransactionFn and SCardEndTr…
TheBestTvarynka 59cab04
feat(ffi): winscard: implement SCardControl
TheBestTvarynka 50b8d12
feat(ffi): winscard: implement SCardIsValidContext
TheBestTvarynka b34d6e2
feat(ffi): implement SCardAccessStartedEvent and SCardReleaseStartedE…
TheBestTvarynka ec89b9a
feat(ffi): implement SCardTransmit
TheBestTvarynka 36e70bf
feat(ffi): implement SCardGetReaderIconA/W
TheBestTvarynka 8c24247
feat(ffi): implement SCardGetDeviceTypeIdA/W
TheBestTvarynka ff4ea04
feat(ffi): implement SCardConnectA/W
TheBestTvarynka 945543a
feat(ffi): implement SCardDisconnect
TheBestTvarynka 4873d9b
feat(ffi): implement SCardStatusA/W
TheBestTvarynka 3bf8443
feat(ffi): implement SCardListReadersA/W
TheBestTvarynka 997225e
feat(ffi): implement SCardReleaseContext
TheBestTvarynka 191ec9f
feat(ffi): implement SCardFreeMemory
TheBestTvarynka 185fa10
feat(sspi): replaced todos with UnsupportedFunction error code in unu…
TheBestTvarynka 744c5a3
feat(winscard-ffi): implemented SCardEstablishContext, SCardGetStatus…
TheBestTvarynka 4019ab0
synced with remote branch: ffi-types
TheBestTvarynka 8f948c6
synced with remote branch: ffi/winscard
TheBestTvarynka 386fa1f
synced with remote branch: winscard-rs
TheBestTvarynka f59da97
remove undded file
TheBestTvarynka 811ab4e
fixed: ffi
TheBestTvarynka f2f90fa
fix(ffi-types): winscard: make ScardReaderStateW fields public
TheBestTvarynka 9d1e2fb
fix(ffi): winscard: SCardGetStatusChangeW;
TheBestTvarynka 7e1afad
winscard + sspi: ffi
TheBestTvarynka 854437d
refac(winscard): export ATR
TheBestTvarynka e56dae0
refac(ffi): winscard: SCardGetStatusChangeW/A
TheBestTvarynka ff28a66
refac(ffi): winscard: SCardGetReaderIconW/A
TheBestTvarynka 85b7c86
refac(ffi): winscard: SCardStatusW/A
TheBestTvarynka 7309dcb
refac(ffi): winscard: SCardGetDeviceTypeIdW/A
TheBestTvarynka fd00038
refac(ffi): winscard: remove SCardDlgExtendedError function
TheBestTvarynka 7fe989d
refac(ffi): winscard: SCardWriteCacheW/A
TheBestTvarynka cecad79
refac(ffi): winscard: SCardReadCacheW/A
TheBestTvarynka 1a5a688
refac(ffi): winscard: SCardControl
TheBestTvarynka f68ff44
refac(ffi): winscard: SCardTransmit
TheBestTvarynka d6b5edd
refac(ffi): winscard: SCardGetCardTypeProviderNameW/A
TheBestTvarynka 7bfd39c
refac(ffi): winscard: SCardListCardsW/A
TheBestTvarynka 73a25be
refac(ffi): winscard: SCardListReadersW/A
TheBestTvarynka 1fb899b
refac(ffi): winscard: SCardEstablishContext. feat(winscard): SmartCar…
TheBestTvarynka dce1291
refac(ffi): winscard: improve memoty management. fix memoty errors;
TheBestTvarynka 4eb98cb
refac(ffi): winscard: small refactoring
TheBestTvarynka 9761b90
refac(ffi): winscard: small refactoring
TheBestTvarynka f433724
winscard: refactoring
TheBestTvarynka 1852dce
winscard: refactoring
TheBestTvarynka 9d9a9bc
refac(ffi): winscard: simplify SCardStatusA/W
TheBestTvarynka e42614f
small ffi refactoring
TheBestTvarynka cb51897
refac(ffi): winscard: small refactoring;
TheBestTvarynka 2c5ca22
refac(winscard): doc comments
TheBestTvarynka f011eb0
refac(ffi): small refactoring;
TheBestTvarynka 6e69b42
refac(ffi): winscard: improve error handling
TheBestTvarynka c21ef72
fix(winscard): format import
TheBestTvarynka 201d8d3
fix(ffi): library name
TheBestTvarynka be477e7
refactor(ffi): revert cargo.toml formatting
TheBestTvarynka 938d397
refactor: improve doc comments summary
TheBestTvarynka 8e96e66
refactor(ffi): winscard: rename module buff_alloc -> buf_alloc
TheBestTvarynka b94ece4
refactor(ffi): winscard: added explicit unsafe block. add unsafe_op_i…
TheBestTvarynka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/// Emulated smart card PIN code. | ||
pub const WINSCARD_PIN_ENV: &str = "WINSCARD_PIN"; | ||
/// Path to the user certificate to be used in emulated smart card. | ||
pub const WINSCARD_CERT_PATH_ENV: &str = "WINSCARD_CERT_PATH"; | ||
/// Path to the certificate private key. | ||
pub const WINSCARD_PK_PATH_ENV: &str = "WINSCARD_PK_PATH"; | ||
/// Emulated smart card container name. | ||
pub const WINSCARD_CONTAINER_NAME_ENV: &str = "WINSCARD_CONTAINER"; | ||
/// Emulated smart card reader name. | ||
pub const WINSCARD_READER_NAME_ENV: &str = "WINSCARD_READER"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
macro_rules! env { | ||
($name:expr) => {{ | ||
std::env::var($name).map_err(|_| { | ||
crate::Error::new( | ||
crate::ErrorKind::InvalidParameter, | ||
format!("The {} env var is not present or invalid", $name), | ||
) | ||
}) | ||
}}; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.