Feed Advanced Search

Wed, Mar 6

werner added a comment to T4377: gpg-agent does not anymore restart a killed scdaemon.

Thanks for fixing that.

Wed, Mar 6, 8:05 AM · gnupg (gpg23), gpgagent, scd
gniibe changed the status of T4377: gpg-agent does not anymore restart a killed scdaemon from Open to Testing.
Wed, Mar 6, 3:05 AM · gnupg (gpg23), gpgagent, scd
gniibe added a comment to T4377: gpg-agent does not anymore restart a killed scdaemon.

That's my badness. In wait_child_thread, assuan_release may cause thread context switch to agent_reset_scd which accesses scd_local_list; This access should be serialized.
And... in start_scd, calling unlock_scd should be after unlocking start_scd_lock.

Wed, Mar 6, 3:05 AM · gnupg (gpg23), gpgagent, scd
gniibe added a commit to T4377: gpg-agent does not anymore restart a killed scdaemon: rG2abad7585a00: agent: Fix detection of exit of scdaemon..
Wed, Mar 6, 3:00 AM · gnupg (gpg23), gpgagent, scd

Tue, Feb 26

werner added a comment to T4377: gpg-agent does not anymore restart a killed scdaemon.

Does not happen in 2.2. Additional requirement to test this bug in master: Another connection to the scdaemon must be open. For example running scute or, easier, call "gpg --card-edit" and keep it open.

Tue, Feb 26, 1:21 PM · gnupg (gpg23), gpgagent, scd
werner created T4377: gpg-agent does not anymore restart a killed scdaemon.
Tue, Feb 26, 12:41 PM · gnupg (gpg23), gpgagent, scd

Feb 19 2019

gniibe closed T3600: Support ACKNOWLEDGE button for OpenPGP card and/or Token as Resolved.

Gnuk implements the feature, and newer GnuPG shows a dialog to request pushing the ack button.

Feb 19 2019, 2:50 AM · scd

Jan 17 2019

werner created T4326: Reloading gpg-agent with disable-scdaemon set does not stop scdaemon..
Jan 17 2019, 5:45 PM · Bug Report, scd, gpgagent

Dec 13 2018

gniibe closed T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN as Resolved.
Dec 13 2018, 3:44 PM · scd, gnupg (gpg22)

Oct 15 2018

gniibe renamed T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN from card: After "forcesig" command makes "not forced", signing fails by: Bad PIN to card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN.
Oct 15 2018, 10:36 AM · scd, gnupg (gpg22)
gniibe changed the status of T4158: UIF (User Interaction Flag) DO support from Open to Testing.
Oct 15 2018, 4:28 AM · Feature Request, scd, gnupg
gniibe added a commit to T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN: rG78f542e1f449: scd: Fix signing authentication status..
Oct 15 2018, 4:25 AM · scd, gnupg (gpg22)
gniibe added a commit to T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN: rG7e2b0488d135: scd: Fix signing authentication status..
Oct 15 2018, 4:25 AM · scd, gnupg (gpg22)
gniibe changed the status of T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN from Open to Testing.
Oct 15 2018, 4:24 AM · scd, gnupg (gpg22)
gniibe updated the task description for T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN.
Oct 15 2018, 3:59 AM · scd, gnupg (gpg22)
gniibe updated the task description for T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN.
Oct 15 2018, 3:57 AM · scd, gnupg (gpg22)
gniibe created T4177: card: After "forcesig" command makes card "not forced", signing fails by: Bad PIN.
Oct 15 2018, 3:56 AM · scd, gnupg (gpg22)

Sep 27 2018

gniibe added a commit to T4158: UIF (User Interaction Flag) DO support: rG0cb65564e022: g10,scd: Support UIF changing command..
Sep 27 2018, 10:09 AM · Feature Request, scd, gnupg
gniibe added a comment to T4158: UIF (User Interaction Flag) DO support.

Interaction will be something like this:

Sep 27 2018, 8:47 AM · Feature Request, scd, gnupg
gniibe claimed T4158: UIF (User Interaction Flag) DO support.

Priority is high, because Gnuk Token requires this feature for testing its implementation.

Sep 27 2018, 8:31 AM · Feature Request, scd, gnupg
gniibe created T4158: UIF (User Interaction Flag) DO support.
Sep 27 2018, 8:30 AM · Feature Request, scd, gnupg

Aug 24 2018

nephirus closed T4097: scdaemon does not handle extended APDUs correctly as Invalid.

Thank you for the clarification. For now, I'll modify our implementation to use shorter length representation and close this bug as Invalid.
However, I'm still not convinced that using hard-coded arguments is the right way to handle requests. I'll do some more testing and if I discover a legitimate use-case that requires long APDUs, I'll reopen the issue.

Aug 24 2018, 5:38 PM · scd, Bug Report

Aug 17 2018

gniibe added a comment to T4097: scdaemon does not handle extended APDUs correctly.

Thanks for the information.

Aug 17 2018, 1:58 AM · scd, Bug Report

Aug 16 2018

nephirus added a comment to T4097: scdaemon does not handle extended APDUs correctly.

In our implementation, DO 0x6E contains:

Aug 16 2018, 12:15 PM · scd, Bug Report
gniibe added a comment to T4097: scdaemon does not handle extended APDUs correctly.

I don't understand the reason why 0x6E (Application Related Data) can be so long. What OpenPGP card implementation do you have?

Aug 16 2018, 6:22 AM · scd, Bug Report
gniibe claimed T4097: scdaemon does not handle extended APDUs correctly.
Aug 16 2018, 6:16 AM · scd, Bug Report

Aug 14 2018

nephirus created T4097: scdaemon does not handle extended APDUs correctly.
Aug 14 2018, 12:41 PM · scd, Bug Report

Jun 12 2018

gniibe renamed T4004: Curve25519 for Zeitcontrol card from Curve22519 for Zeitcontrol card to Curve25519 for Zeitcontrol card.
Jun 12 2018, 9:51 AM · Feature Request, scd

Jun 6 2018

werner triaged T3891: kdf-setup does not set admin and user PIN codes as Normal priority.
Jun 6 2018, 5:57 PM · scd, Bug Report
Arnaud added a comment to T3891: kdf-setup does not set admin and user PIN codes.

Here is a sequence of operations/commands that permits to setup or update KDF-DO and align PIN codes accordingly:

Jun 6 2018, 2:58 PM · scd, Bug Report
gniibe closed T3823: gpg frontend support to setup KDF DO as Resolved.
Jun 6 2018, 3:41 AM · scd
gniibe closed T3823: gpg frontend support to setup KDF DO, a subtask of T3152: KDF DO support in OpenPGP card, as Resolved.
Jun 6 2018, 3:41 AM · scd

May 30 2018

werner created T4004: Curve25519 for Zeitcontrol card.
May 30 2018, 12:15 PM · Feature Request, scd

Apr 27 2018

dirk added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Now there it gets complicated. According to the card software author in 3.3 and even 2.2 there is a fix. BUT there was a small amount of cards already created in 3.3 without the fix. Nobody ever told my how to diferentiate them.
There is no Version 3.3.1 you can by - it is only 3.3. So you can buy one and hope you have a good one.
At least this is my understanding.

Apr 27 2018, 10:20 PM · Info Needed, scd, Bug Report

Apr 26 2018

ThePowerOfDreams added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Does v3.3.1 fix this? (The release notes for it seem to imply that's not the case.)

Apr 26 2018, 2:45 PM · Info Needed, scd, Bug Report

Apr 20 2018

gniibe added a comment to T3781: ECC encryption key on-card generation broken.

@nitroalex Perhaps, creating new ticker is better for this topic.
In the current OpenPGP card specification, there is no way for an application (except having a list of card implementation information) to know wich algo and which curve is supported or not.
So, what an application does is try and error.
I don't like this situation, but I don't know how we can modify the specification.

Apr 20 2018, 10:10 AM · g10, scd, Bug Report

Apr 19 2018

nitroalex added a comment to T3781: ECC encryption key on-card generation broken.

Well, I surely would agree (and this is only a proposal anyway), but my point here is, that OpenPGP Card does not support Curve 25519, so that one *have to* choose between those other two. Considering me a tinfoil hat person, I would rather not choose NIST, as many others wouldn't too.

Apr 19 2018, 2:27 PM · g10, scd, Bug Report

Apr 17 2018

werner closed T3842: OpenPGP Smart card V2.1 returns truncated RSA signatures if leading bytes of signature are 0 as Invalid.
Apr 17 2018, 8:33 PM · Not A Bug, scd

Apr 13 2018

werner added a comment to T3781: ECC encryption key on-card generation broken.

Neither Brainpool nor NIST curves make any sense unless there is an organizational policy requirement. Thus the --expert requirement is the Right Thing (tm).

Apr 13 2018, 12:53 PM · g10, scd, Bug Report

Apr 12 2018

nitroalex added a comment to T3781: ECC encryption key on-card generation broken.

works just fine, thx!

Apr 12 2018, 3:30 PM · g10, scd, Bug Report

Apr 11 2018

gniibe added a comment to T3891: kdf-setup does not set admin and user PIN codes.

For the situation where PINs are not factory setting, given the specification, I don't know how to achieve "to align all PWs and the KDF-DO with correct values"; It might depend on card's implementation.

Apr 11 2018, 11:07 AM · scd, Bug Report
Arnaud added a comment to T3891: kdf-setup does not set admin and user PIN codes.

You are right about the fact that multiple steps could result in unusable cards in case of power down before all commands have been issued. Nevertheless, in practice, these commands would involve very few treatments on the token (i.e. no cryptographic operation or heavy data transfer) and it should really not take long to complete the three steps (admin PIN update, user PIN update, KDF-DO update).

Apr 11 2018, 10:29 AM · scd, Bug Report
gniibe added a project to T3843: Unable to generate RSA4096 keys on Yubikey 4 on OSX Sierra: Info Needed.
Apr 11 2018, 10:02 AM · Info Needed, MacOS, yubikey, scd, Bug Report
gniibe triaged T3843: Unable to generate RSA4096 keys on Yubikey 4 on OSX Sierra as Normal priority.
Apr 11 2018, 10:02 AM · Info Needed, MacOS, yubikey, scd, Bug Report
gniibe closed T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows as Resolved.

Workaround is implemented in 2.2.6.

Apr 11 2018, 1:59 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe closed T3781: ECC encryption key on-card generation broken as Resolved.

Fixed in 2.2.6.

Apr 11 2018, 1:58 AM · g10, scd, Bug Report
gniibe claimed T3891: kdf-setup does not set admin and user PIN codes.
Apr 11 2018, 1:13 AM · scd, Bug Report

Apr 10 2018

gniibe added a comment to T3891: kdf-setup does not set admin and user PIN codes.

My interpretation of the specification is different.
By requiring the condition of setting KDF-DO (it is only valid to setup KDF-DO when PINs are factory setting), Gnuk works well with current "kdf-setup".
If the procedure of setting KDF-DO includes multiple steps with KDF-DO update and PIN update, there is a risk of power down which results unusable card.

Apr 10 2018, 11:38 PM · scd, Bug Report
Arnaud added a subtask for T3152: KDF DO support in OpenPGP card: T3891: kdf-setup does not set admin and user PIN codes.
Apr 10 2018, 2:41 PM · scd
Arnaud added parent tasks for T3891: kdf-setup does not set admin and user PIN codes: T3152: KDF DO support in OpenPGP card, T3823: gpg frontend support to setup KDF DO.
Apr 10 2018, 2:41 PM · scd, Bug Report
Arnaud added a subtask for T3823: gpg frontend support to setup KDF DO: T3891: kdf-setup does not set admin and user PIN codes.
Apr 10 2018, 2:41 PM · scd
Arnaud created T3891: kdf-setup does not set admin and user PIN codes.
Apr 10 2018, 2:41 PM · scd, Bug Report

Apr 5 2018

werner added projects to T3843: Unable to generate RSA4096 keys on Yubikey 4 on OSX Sierra: scd, yubikey.
Apr 5 2018, 5:22 PM · Info Needed, MacOS, yubikey, scd, Bug Report

Apr 3 2018

gniibe added a comment to T3842: OpenPGP Smart card V2.1 returns truncated RSA signatures if leading bytes of signature are 0.

Yes, I meant the document. Please note that I am also one of users of the specification (for GnuPG, and for Gnuk Token). I am not defending, but try to explain the current situation.

Apr 3 2018, 1:30 AM · Not A Bug, scd

Apr 2 2018

MSoegtrop added a comment to T3842: OpenPGP Smart card V2.1 returns truncated RSA signatures if leading bytes of signature are 0.

I was referring to this document:

Apr 2 2018, 11:25 AM · Not A Bug, scd
gniibe added a comment to T3842: OpenPGP Smart card V2.1 returns truncated RSA signatures if leading bytes of signature are 0.

You describe it as 'manual'. AFAIK, it's the specification for the functionality.
I have an experience implementing the functionality, following the specification.
And my own implementation does always return 512 bytes for RSA-4096. So, I could support your opinion.

Apr 2 2018, 7:16 AM · Not A Bug, scd

Mar 30 2018

gniibe added a comment to T3152: KDF DO support in OpenPGP card.

I realized that KDF support may be incompatible to Gnuk's feature of "admin-less" mode.
I'm going to implement compatible KDF support to Gnuk; That is, KDF data which only has a single salt.
In this case, all KDF calculation (user, reset-code, and admin) is done with the single salt.
With single salt, admin-less mode can work with no problem.

Mar 30 2018, 4:59 AM · scd
gniibe changed the status of T3781: ECC encryption key on-card generation broken from Open to Testing.
Mar 30 2018, 4:52 AM · g10, scd, Bug Report
gniibe added a comment to T3781: ECC encryption key on-card generation broken.

Furthermore, I changed to have an explicit command: key-attr

Mar 30 2018, 4:52 AM · g10, scd, Bug Report
gniibe added a commit to T3781: ECC encryption key on-card generation broken: rG820380335a20: g10: Add "key-attr" command for --card-edit..
Mar 30 2018, 4:04 AM · g10, scd, Bug Report

Mar 29 2018

gniibe triaged T3781: ECC encryption key on-card generation broken as Normal priority.

I changed the interaction so that user can specify RSA or ECC, then when it's for ECC, specifying curve.

Mar 29 2018, 6:10 AM · g10, scd, Bug Report
gniibe added a commit to T3781: ECC encryption key on-card generation broken: rGa1515b3bbc10: g10: Support key attribute change at --card-edit/generate..
Mar 29 2018, 5:06 AM · g10, scd, Bug Report

Mar 28 2018

gniibe claimed T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 28 2018, 1:29 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 22 2018

gniibe changed the status of T3823: gpg frontend support to setup KDF DO, a subtask of T3152: KDF DO support in OpenPGP card, from Open to Testing.
Mar 22 2018, 7:59 AM · scd
gniibe changed the status of T3823: gpg frontend support to setup KDF DO from Open to Testing.

2.2.6 will have this feature in --card-edit, as kdf-setup. Please test.

Mar 22 2018, 7:59 AM · scd
gniibe added a commit to T3823: gpg frontend support to setup KDF DO: rG0152ba7c9874: scd: Support KDF DO setup..
Mar 22 2018, 7:55 AM · scd

Mar 17 2018

werner added a project to T3842: OpenPGP Smart card V2.1 returns truncated RSA signatures if leading bytes of signature are 0: scd.
Mar 17 2018, 7:27 PM · Not A Bug, scd

Mar 16 2018

gniibe added a comment to T3823: gpg frontend support to setup KDF DO.

For factory-reset, rG2c85e202bc30: scd: Better user interaction for factory-reset. fixed the issue.

Mar 16 2018, 3:40 AM · scd

Mar 13 2018

dirk added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Hallo Werner,

Mar 13 2018, 9:16 PM · Info Needed, scd, Bug Report
vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I've contacted Yubico to review this ticket.

Mar 13 2018, 3:03 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Hi, that works as advertised. If this is the best solution yubikey permits us I am ok with it.

Mar 13 2018, 2:36 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I put an entry: https://wiki.gnupg.org/SmartCard#Known_problem_of_Yubikey

Mar 13 2018, 5:35 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

After resume, because resume is not detected, some user interaction is required to cause an error.
gpg --card-status (which will only show partial information) is enough. Or, ssh failure. After failure, scdaemon reconnects the token.
Then, you can use it again without plug-off/plug-in.

Mar 13 2018, 4:58 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a commit to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows: rGc84bae69e9e0: scd: After fatal error, shutdown a reader..
Mar 13 2018, 4:56 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for pointers and suggestion.
Well, the problem of Yubikey itself cannot be solved by others, we can put some workaround for the error recovery.
So, this is another try of mine to improve error recovery.

Mar 13 2018, 4:52 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 12 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
  • There was same problem in yubico-piv-tool and it was solved by detecting error state (0x80100068) and reconnecting to the smart card if necessary [1]
  • There is also a thread in OpenSC discussing this issue [2] and relevant PRs [3]
  • I also found a project that claims to fix SCARD_W_RESET_CARD by disabling exclusive access to the card before asking for PIN (and then they enable exclusive access again) [4]
Mar 12 2018, 8:54 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
werner added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

New cards will come with a fix. I am not sure whether a production run has yet been done, though.

Mar 12 2018, 3:58 PM · Info Needed, scd, Bug Report
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Part of the problem is Yubikey side, I suppose. (Because my implementation of Gnuk Token has no problem for suspend/resume if it's in-use.)

Mar 12 2018, 1:24 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Again, thanks a lot for your testing. The log said: The code I added cannot detect the event of suspend/resume.
It seems that there is no way to recover from suspend/resume for Yubikey.

Mar 12 2018, 1:19 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 10 2018

dirk added a comment to T3576: Open PGP SmartCard V2.1 - decryption error: ERR 100663364 Missing item in object <SCD>.

Hello again,

Mar 10 2018, 12:35 AM · Info Needed, scd, Bug Report
dirk added a comment to T1209: Cherry ST-2000U USB card reader keypad not working on GNU/Linux.
Mar 10 2018, 12:35 AM · scd, Bug Report, gnupg

Mar 9 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Yeah, this is better, we got apdu_get_status => sw=0x0 status=7 and I can auth with this version as usual. After sleep-wake cycle it would however fail with pcsc_transmit failed: reset card (0x80100068). Logs attached.

Mar 9 2018, 7:09 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks a lot for your testing. So, apparently, the PC/SC behavior is different between GNU/Linux and Windows.
Thus, I pushed another change: rG1e27c0e04cd3: scd: More fix with PC/SC for Windows.. Please test this. (Both of previous version and this version work well on GNU/Linux for operations not including suspend/resume with Yubikey and Gnuk Token, while my Yubikey with PC/SC doesn't work well for suspend/resume.)

Mar 9 2018, 2:02 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a commit to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows: rG1e27c0e04cd3: scd: More fix with PC/SC for Windows..
Mar 9 2018, 1:01 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 8 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Thanks, this version of scdaemon executes.

Mar 8 2018, 7:45 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3823: gpg frontend support to setup KDF DO.
Mar 8 2018, 9:06 AM · scd
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

Sorry, my build was not good even if it's for x86_64 (I used development version of libassuan, etc.).

Mar 8 2018, 6:07 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3823: gpg frontend support to setup KDF DO.

I realized that: once KDF-DO is written to smartcard/token, factory-reset command won't work because it assumes standard PIN format than hashed.

Mar 8 2018, 3:45 AM · scd
gniibe added a comment to T3823: gpg frontend support to setup KDF DO.

Sorry again. My script was still wrong (didn't work).

Mar 8 2018, 3:44 AM · scd

Mar 7 2018

gniibe added a comment to T3823: gpg frontend support to setup KDF DO.

It doesn't work because I did mistake for the salt of reset code, it should be 8-byte instead of 4-byte.
Here is a fixed version, which I tested with Gnuk 1.2.8:

Mar 7 2018, 8:02 AM · scd

Mar 6 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

@gniibe it seems the patched scdaemon.exe is 64 bit executable and it requires libassuan6-0.dll. However I got installed 32 bit version of gpg that only has incompatible libassuan-0.dll. I scanned whole computer for the missing lib, skimmed your ftp for 64 bit binaries and looked into gpg4win installer to find it, but no luck. There is also libassuan github repo, but I would like to avoid building the dll myself; there would probably be more than one dll to build anyway.

Mar 6 2018, 9:44 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe changed the visibility for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 6 2018, 8:27 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe triaged T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows as Normal priority.

If possible, please try with this (patched version of scdaemon):

Mar 6 2018, 8:25 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
aheinecke edited projects for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows, added: gpg4win; removed Windows 64.
Mar 6 2018, 7:53 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3823: gpg frontend support to setup KDF DO.

Something like this script should be implemented by gpg frontend:

Mar 6 2018, 7:16 AM · scd
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

I realized that suspend/resume is not supported yet on GNU/Linux: https://anonscm.debian.org/cgit/pcsclite/PCSC.git/tree/TODO#n7
So, I can't test myself.
Here is an attempt to improve:


The reference is: https://stackoverflow.com/questions/11294638/how-to-use-scardgetstatuschange-correctly-on-windows-8

Mar 6 2018, 2:11 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
gniibe added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

It looks like SCardGetStatusChange doesn't return failure after wake up.
Here, what we need is catching the event of wake up, which requires reset of the card.
I think that we can check by the dwEventState field.
I'll try on GNU/Linux environment, then ask you to try.

Mar 6 2018, 12:41 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey

Mar 5 2018

vovcacik added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

@werner there had to be some mix up, as the log snippet is not mine.

Mar 5 2018, 9:26 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
werner added a comment to T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.

This seems to be the relevant part of the log:

2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: card inactive/removed
2017-11-18 07:45:15 scdaemon[8918] ccid open error: skip
2017-11-18 07:45:15 scdaemon[8918] pcsc_establish_context failed: no service (0x8010001d)
2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: interrupt callback 0
2017-11-18 07:45:15 scdaemon[8918] DBG: ccid-driver: CCID: card removed
Mar 5 2018, 1:46 PM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey
vovcacik updated the task description for T3825: Scdaemon needs to restart after wake up from sleep mode for YubiKey to work on Windows.
Mar 5 2018, 11:22 AM · gpg4win, gpgagent, gnupg (gpg22), scd, Windows, Bug Report, yubikey