1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

More error codes and mappings

This commit is contained in:
Werner Koch 2002-01-19 18:20:45 +00:00
parent f58da1883a
commit 08e10cd52f
2 changed files with 4 additions and 0 deletions

View File

@ -76,6 +76,7 @@ enum {
GNUPG_CRL_Too_Old = 47,
GNUPG_Line_Too_Long = 48,
GNUPG_Not_Trusted = 49,
GNUPG_Canceled = 50,
};
/* Status codes - fixme: should go into another file */

View File

@ -135,6 +135,8 @@ map_assuan_err (int err)
case 0:
break;
case ASSUAN_Canceled: err = GNUPG_Canceled; break;
case ASSUAN_Not_Implemented: err = GNUPG_Not_Implemented; break;
case ASSUAN_Server_Fault: err = GNUPG_Assuan_Server_Fault; break;
case ASSUAN_No_Public_Key: err = GNUPG_No_Public_Key; break;
@ -174,6 +176,7 @@ map_to_assuan_status (int rc)
case GNUPG_Invalid_Data: rc = ASSUAN_Invalid_Data; break;
case GNUPG_Invalid_Name: rc = ASSUAN_Invalid_Name; break;
case GNUPG_Not_Trusted: rc = ASSUAN_Not_Trusted; break;
case GNUPG_Canceled: rc = ASSUAN_Canceled; break;
case GNUPG_Bad_PIN:
case GNUPG_Bad_Passphrase: