1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02: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

@ -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);
}