aboutsummaryrefslogtreecommitdiffstats
path: root/g10/status.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2005-03-07 13:59:59 +0000
committerWerner Koch <[email protected]>2005-03-07 13:59:59 +0000
commitc91e30fda49244ee89edc74acd1a9897f35e6539 (patch)
treefe38ba8ec1f9014eb9323f0a4f7fe748070e5644 /g10/status.c
parent* libcurl.m4: Use $LIBS instead of $LDFLAGS. This should help build (diff)
downloadgnupg-c91e30fda49244ee89edc74acd1a9897f35e6539.tar.gz
gnupg-c91e30fda49244ee89edc74acd1a9897f35e6539.zip
* primegen.c (is_prime): Free A2. Noted by [email protected].
Fixes #423. * DETAILS: Document new status codes. * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign) (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin) (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a SC_OP_FAILURE after card operations which might change data. * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has been changed. (change_name): Removed a debug output. * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE and SC_OP_SUCCESS. * de.po: Updated. Translation is still in the works, though.
Diffstat (limited to '')
-rw-r--r--g10/status.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/g10/status.c b/g10/status.c
index 1386ca91f..342622601 100644
--- a/g10/status.c
+++ b/g10/status.c
@@ -112,6 +112,7 @@ get_status_string ( int no )
case STATUS_ENC_TO : s = "ENC_TO"; break;
case STATUS_NODATA : s = "NODATA"; break;
case STATUS_BAD_PASSPHRASE : s = "BAD_PASSPHRASE"; break;
+ case STATUS_BAD_PASSPHRASE_PIN: s = "BAD_PASSPHRASE_PIN"; break;
case STATUS_NO_PUBKEY : s = "NO_PUBKEY"; break;
case STATUS_NO_SECKEY : s = "NO_SECKEY"; break;
case STATUS_NEED_PASSPHRASE_SYM: s = "NEED_PASSPHRASE_SYM"; break;
@@ -159,6 +160,8 @@ get_status_string ( int no )
case STATUS_PLAINTEXT : s = "PLAINTEXT"; break;
case STATUS_PLAINTEXT_LENGTH:s = "PLAINTEXT_LENGTH"; break;
case STATUS_SIG_SUBPACKET : s = "SIG_SUBPACKET"; break;
+ case STATUS_SC_OP_SUCCESS : s = "SC_OP_SUCCESS"; break;
+ case STATUS_SC_OP_FAILURE : s = "SC_OP_FAILURE"; break;
default: s = "?"; break;
}
return s;