mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-23 10:29:58 +01:00
(card_close): New.
(agent_scd_change_pin): Implemented.
This commit is contained in:
parent
6f6511f3ca
commit
8b36b03074
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user