diff options
author | Werner Koch <[email protected]> | 2005-11-28 11:52:25 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2005-11-28 11:52:25 +0000 |
commit | 6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9 (patch) | |
tree | 86758522ae4f5ed44068bc6dbf5d2adb068a3ea1 /scd/app-openpgp.c | |
parent | Add translations (diff) | |
download | gnupg-6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9.tar.gz gnupg-6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9.zip |
Preparing an interim release
Diffstat (limited to '')
-rw-r--r-- | scd/app-openpgp.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 5625c729b..3d04be0be 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -1284,6 +1284,11 @@ verify_chv2 (app_t app, if (!app->did_chv2) { char *pinvalue; + iso7816_pininfo_t pininfo; + + memset (&pininfo, 0, sizeof pininfo); + pininfo.mode = 1; + pininfo.minlen = 6; rc = pincb (pincb_arg, "PIN", &pinvalue); if (rc) @@ -2455,7 +2460,9 @@ app_select_openpgp (app_t app) size_t buflen; void *relptr; - rc = iso7816_select_application (slot, aid, sizeof aid); + /* Note that the card can't cope with P2=0xCO, thus we need to pass a + special flag value. */ + rc = iso7816_select_application (slot, aid, sizeof aid, 0x0001); if (!rc) { unsigned int manufacturer; |