[PATCH] gpg: read private DOs from card.

Damien Goutte-Gattat dgouttegattat at incenp.org
Tue Dec 16 11:52:47 CET 2014

In GnuPG 2.x, when learning about an inserted OpenPGP smartcard, the 
PRIVATE-DO-{1..4} data lines sent by the agent are ignored by the 
learn_status_cb callback in g10/call-agent.c. This results in the card 
editor not listing the contents of the private data objects on the card.

This was not the behavior of GnuPG 1.x, which correctly listed the 
private DOs.

The attached patch allows gpg2 to lists the private DOs again (it's 
actually a simple copy-paste of the relevant GnuPG 1.x code in 

  g10/call-agent.c | 8 ++++++++
  1 file changed, 8 insertions(+)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gpg-read-private-DOs-from-card.patch
Type: text/x-patch
Size: 700 bytes
Desc: not available
URL: </pipermail/attachments/20141216/9fc9fcf7/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: </pipermail/attachments/20141216/9fc9fcf7/attachment.sig>

More information about the Gnupg-devel mailing list