summaryrefslogtreecommitdiffstats
path: root/scd/command.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2009-03-30 14:46:06 +0200
committerWerner Koch <wk@gnupg.org>2009-03-30 14:46:06 +0200
commit98e1a75e205b15da1da1bdf34f462a8acdc85ac9 (patch)
tree918647b1740329a1223f83c7edca539d96e9641f /scd/command.c
parentSigning using Netkey 3 cards does now work. (diff)
downloadgnupg2-98e1a75e205b15da1da1bdf34f462a8acdc85ac9.tar.xz
gnupg2-98e1a75e205b15da1da1bdf34f462a8acdc85ac9.zip
Implement decryption for TCOS 3 cards.
Diffstat (limited to 'scd/command.c')
-rw-r--r--scd/command.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/scd/command.c b/scd/command.c
index 07aed176a..71081b26f 100644
--- a/scd/command.c
+++ b/scd/command.c
@@ -596,7 +596,8 @@ cmd_serialno (assuan_context_t ctx, char *line)
100 := Regular X.509 cert
101 := Trusted X.509 cert
102 := Useful X.509 cert
- 110 := Root CA cert (e.g. DINSIG)
+ 110 := Root CA cert in a special format (e.g. DINSIG)
+ 111 := Root CA cert as standard X509 cert.
For certain cards, more information will be returned:
@@ -963,7 +964,7 @@ cmd_pksign (assuan_context_t ctx, char *line)
xfree (keyidstr);
if (rc)
{
- log_error ("card_sign failed: %s\n", gpg_strerror (rc));
+ log_error ("app_sign failed: %s\n", gpg_strerror (rc));
}
else
{
@@ -1013,7 +1014,7 @@ cmd_pkauth (assuan_context_t ctx, char *line)
xfree (keyidstr);
if (rc)
{
- log_error ("app_auth_sign failed: %s\n", gpg_strerror (rc));
+ log_error ("app_auth failed: %s\n", gpg_strerror (rc));
}
else
{
@@ -1057,7 +1058,7 @@ cmd_pkdecrypt (assuan_context_t ctx, char *line)
xfree (keyidstr);
if (rc)
{
- log_error ("card_create_signature failed: %s\n", gpg_strerror (rc));
+ log_error ("app_decipher failed: %s\n", gpg_strerror (rc));
}
else
{
@@ -1821,7 +1822,7 @@ cmd_apdu (assuan_context_t ctx, char *line)
unsigned char *result = NULL;
size_t resultlen;
- rc = apdu_send_direct (ctrl->reader_slot, apdu, apdulen, handle_more,
+ rc = apdu_send_direct (ctrl->reader_slot, 0, apdu, apdulen, handle_more,
&result, &resultlen);
if (rc)
log_error ("apdu_send_direct failed: %s\n", gpg_strerror (rc));