diff options
author | Werner Koch <wk@gnupg.org> | 2002-08-16 12:33:31 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-08-16 12:33:31 +0200 |
commit | fd2f1c8aa3190d55cb16fd6d2aab994447ab3bf8 (patch) | |
tree | d88d5f3480e5c6856a8a8c1947de91b4a9d06176 /scd/card.c | |
parent | Removed a leftover conflict indicator. (diff) | |
download | gnupg2-fd2f1c8aa3190d55cb16fd6d2aab994447ab3bf8.tar.xz gnupg2-fd2f1c8aa3190d55cb16fd6d2aab994447ab3bf8.zip |
* card-common.h (struct p15_private_s): Forward declaration. Add
it to card_ctx_s.
* card.c (card_close): Make sure private data is released.
* card-p15.c (p15_release_private_data): New.
(init_private_data): New to work around an OpenSC weirdness.
(p15_enum_keypairs): Do an OpenSC get_objects only once.
Diffstat (limited to 'scd/card.c')
-rw-r--r-- | scd/card.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scd/card.c b/scd/card.c index 9c22867a1..34812b8a1 100644 --- a/scd/card.c +++ b/scd/card.c @@ -162,6 +162,8 @@ card_close (CARD card) sc_pkcs15_unbind (card->p15card); card->p15card = NULL; } + if (card->p15priv) + p15_release_private_data (card); if (card->scard) { sc_unlock (card->scard); |