diff options
| author | NIIBE Yutaka <[email protected]> | 2019-09-10 06:51:05 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2019-09-11 01:11:25 +0000 |
| commit | 1080e91efd60cb41c2d6dbafaee810e5967a3161 (patch) | |
| tree | 4342d1d9990385dcde8015f1130c6f60b907e1d9 /dirmngr/misc.c | |
| parent | scd: Clean up the structure for future fix of PC/SC. (diff) | |
| download | gnupg-1080e91efd60cb41c2d6dbafaee810e5967a3161.tar.gz gnupg-1080e91efd60cb41c2d6dbafaee810e5967a3161.zip | |
scd,pcsc: Use a single context.
* scd/apdu.c (pcsc): New variable.
(struct reader_table_s): Remove pcsc.context from member.
(pcsc_get_status, connect_pcsc_card): Use pcsc.context.
(close_pcsc_reader): Release pcsc.context here with reference count.
(pcsc_init): New.
(open_pcsc_reader): Don't call pcsc_establish_context here. Call
close_pcsc_reader instead of pcsc_release_context.
(apdu_open_reader): Call pcsc_init if needed.
(apdu_init): Initialize pcsc.count and pcsc.context.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'dirmngr/misc.c')
0 files changed, 0 insertions, 0 deletions
