aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-nks.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-11-28 11:52:25 +0000
committerWerner Koch <[email protected]>2005-11-28 11:52:25 +0000
commit6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9 (patch)
tree86758522ae4f5ed44068bc6dbf5d2adb068a3ea1 /scd/app-nks.c
parentAdd translations (diff)
downloadgnupg-6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9.tar.gz
gnupg-6a13cf2c3dbacb9f3afd3f64e5d0c78b9c0e77e9.zip
Preparing an interim release
Diffstat (limited to 'scd/app-nks.c')
-rw-r--r--scd/app-nks.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/scd/app-nks.c b/scd/app-nks.c
index b6a3037ed..73ec8ea01 100644
--- a/scd/app-nks.c
+++ b/scd/app-nks.c
@@ -27,7 +27,7 @@
#include <time.h>
#include "scdaemon.h"
-
+#include "i18n.h"
#include "iso7816.h"
#include "app-common.h"
#include "tlv.h"
@@ -320,7 +320,7 @@ verify_pin (app_t app,
return rc;
}
- /* The follwoing limits are due to TCOS but also defined in the
+ /* The following limits are due to TCOS but also defined in the
NKS specs. */
if (strlen (pinvalue) < 6)
{
@@ -340,7 +340,10 @@ verify_pin (app_t app,
rc = iso7816_verify (app->slot, 0, pinvalue, strlen (pinvalue));
if (rc)
{
- log_error ("verify PIN failed\n");
+ if ( gpg_error (rc) == GPG_ERR_USE_CONDITIONS )
+ log_error (_("the NullPIN has not yet been changed\n"));
+ else
+ log_error ("verify PIN failed\n");
xfree (pinvalue);
return rc;
}
@@ -492,7 +495,7 @@ app_select_nks (APP app)
int slot = app->slot;
int rc;
- rc = iso7816_select_application (slot, aid, sizeof aid);
+ rc = iso7816_select_application (slot, aid, sizeof aid, 0);
if (!rc)
{
app->apptype = "NKS";