mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
* maperror.c: Add mapping for Not_Trusted.
This commit is contained in:
parent
148aa6e529
commit
a6a2595dba
@ -85,6 +85,7 @@ typedef enum {
|
||||
ASSUAN_Cert_Revoked = 301,
|
||||
ASSUAN_No_CRL_For_Cert = 302,
|
||||
ASSUAN_CRL_Too_Old = 303,
|
||||
ASSUAN_Not_Trusted = 304,
|
||||
|
||||
} AssuanError;
|
||||
|
||||
|
@ -1,3 +1,7 @@
|
||||
2002-01-15 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* maperror.c: Add mapping for Not_Trusted.
|
||||
|
||||
2002-01-11 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* maperror.c (map_assuan_err): Codes for CRL
|
||||
|
@ -74,6 +74,8 @@ enum {
|
||||
GNUPG_Certificate_Revoked = 45,
|
||||
GNUPG_No_CRL_Known = 46,
|
||||
GNUPG_CRL_Too_Old = 47,
|
||||
GNUPG_Line_Too_Long = 48,
|
||||
GNUPG_Not_Trusted = 49,
|
||||
};
|
||||
|
||||
/* Status codes - fixme: should go into another file */
|
||||
|
@ -144,6 +144,9 @@ map_assuan_err (int err)
|
||||
case ASSUAN_No_CRL_For_Cert: err = GNUPG_No_CRL_Known; break;
|
||||
case ASSUAN_CRL_Too_Old: err = GNUPG_CRL_Too_Old; break;
|
||||
|
||||
case ASSUAN_Not_Trusted: err = GNUPG_Not_Trusted; break;
|
||||
|
||||
|
||||
default:
|
||||
err = err < 100? GNUPG_Assuan_Server_Fault : GNUPG_Assuan_Error;
|
||||
break;
|
||||
@ -170,6 +173,7 @@ map_to_assuan_status (int rc)
|
||||
case GNUPG_No_Secret_Key: rc = ASSUAN_No_Secret_Key; break;
|
||||
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_Bad_PIN:
|
||||
case GNUPG_Bad_Passphrase:
|
||||
|
Loading…
x
Reference in New Issue
Block a user