Conversation
|
This is just a note, but there has got to be a better way of handling these common command line options than updating every single file. Perhaps now (or in the --no-password PR) we should introduce a shared function that adds all the common parameters given a parser argument. |
|
@droidmonkey I 💯 agree, and this is the next refactoring I have in mind for the CLI. I'm going to add a |
7de9c86 to
890c378
Compare
|
Targeting this for 2.5.0 since it is a pretty large change. |
890c378 to
535a24e
Compare
|
@droidmonkey alright! I rebased the PR on develop! |
535a24e to
928a248
Compare
|
@droidmonkey I'm going to split this PR in 2 as I realize it's quite large to review, and the small yubikey core part of the patch can be beneficial by itself. |
|
Sounds good to me! |
Add YubiKey support for the CLI with the
-y,--yubikeyoption.Added the
YubiKey::isBlockingfunction, partly extracted fromdetect, so that the yubikey detection code could be reused from the GUI and the CLI. Also added more specific error messages by handling more specific yubikey errors.Type of change
Description and Context
#2451
Testing strategy
Locally + unit tests
Checklist:
-DWITH_ASAN=ON. [REQUIRED]