mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-03 12:11:33 +01:00
* maperror.c (map_assuan_err): Codes for CRL
This commit is contained in:
parent
bc37e6d30e
commit
98b2622ef0
@ -1,3 +1,7 @@
|
||||
2002-01-11 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* maperror.c (map_assuan_err): Codes for CRL
|
||||
|
||||
2002-01-08 Werner Koch <wk@gnupg.org>
|
||||
|
||||
* util.h (spacep): New.
|
||||
|
@ -68,7 +68,12 @@ enum {
|
||||
GNUPG_Bad_Secret_Key = 39,
|
||||
GNUPG_Bad_Data = 40,
|
||||
GNUPG_Invalid_Parameter = 41,
|
||||
GNUPG_Tribute_to_D_A = 42
|
||||
GNUPG_Tribute_to_D_A = 42,
|
||||
GNUPG_No_Dirmngr = 43,
|
||||
GNUPG_Dirmngr_Error = 44,
|
||||
GNUPG_Certificate_Revoked = 45,
|
||||
GNUPG_No_CRL_Known = 46,
|
||||
GNUPG_CRL_Too_Old = 47,
|
||||
};
|
||||
|
||||
/* Status codes - fixme: should go into another file */
|
||||
|
@ -140,6 +140,10 @@ map_assuan_err (int err)
|
||||
case ASSUAN_No_Public_Key: err = GNUPG_No_Public_Key; break;
|
||||
case ASSUAN_No_Secret_Key: err = GNUPG_No_Secret_Key; break;
|
||||
|
||||
case ASSUAN_Cert_Revoked: err = GNUPG_Certificate_Revoked; break;
|
||||
case ASSUAN_No_CRL_For_Cert: err = GNUPG_No_CRL_Known; break;
|
||||
case ASSUAN_CRL_Too_Old: err = GNUPG_CRL_Too_Old; break;
|
||||
|
||||
default:
|
||||
err = err < 100? GNUPG_Assuan_Server_Fault : GNUPG_Assuan_Error;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user