1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

(card_close): New.

(agent_scd_change_pin): Implemented.
This commit is contained in:
Werner Koch 2003-10-10 15:45:11 +00:00
parent 6f6511f3ca
commit 8b36b03074
3 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2003-10-10 Werner Koch <wk@gnupg.org>
Release 1.3.3.
2003-10-09 David Shaw <dshaw@jabberwocky.com>
* NEWS: Note multiple Comment: support and --sig-keyserver-url.

View File

@ -1,6 +1,8 @@
2003-10-10 Werner Koch <wk@gnupg.org>
* cardglue.c (card_close): New.
(agent_scd_change_pin): Implemented.
* ccid-driver.c (ccid_close_reader): New.
* apdu.c (close_ccid_reader, close_ct_reader, close_csc_reader)
(close_osc_reader, apdu_close_reader): New. Not all are properly

View File

@ -664,7 +664,19 @@ agent_scd_pkdecrypt (const char *serialno,
int
agent_scd_change_pin (int chvno)
{
APP app;
char chvnostr[20];
int reset = 0;
return gpg_error (GPG_ERR_CARD);
reset = (chvno >= 100);
chvno %= 100;
app = current_app? current_app : open_card ();
if (!app)
return gpg_error (GPG_ERR_CARD);
sprintf (chvnostr, "%d", chvno);
return app->fnc.change_pin (app, NULL, chvnostr, reset,
pin_cb, NULL);
}