forked from OpenSC/OpenSC
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sc_pkcs15_get_pin_info sets SC_PIN_STATE_LOGGED_OUT until pin verified
Force attrs.pin.min_length to be at least 1. Part 10 pin pad reader template passes pin.min_length and pin.max_length to pin pad reader to check. Avoids sending normal verify command with Lc=0 which looks like query for login state. struct sc_pkcs15_auth_info now includes "int process_verified_pin;" which is only set after the first verify of this pin. Thus caller is forced when using OpenSC to verify the pin. Useful for login and screen savers. But forces user to enter pin at least once for processes such as firefox and thunderbird. When using pin pad and process has verified the pin at least once, and login state says SC_PIN_LOGGED_IN, it will not require entering the pin again on pin pad reader. Date: Mon Nov 6 09:25:47 2023 -0600 On branch first-pin-command Changes to be committed: modified: libopensc/pkcs15-pin.c modified: libopensc/pkcs15.h
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 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