aboutsummaryrefslogtreecommitdiffstats
path: root/common/maperror.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2002-06-28 16:16:57 +0000
committerWerner Koch <[email protected]>2002-06-28 16:16:57 +0000
commit0c0b0f545278b1391867c5a9ad19b2506d3896d0 (patch)
treecc2a4a5d335cc7df637f8b0441d063d5081aa36b /common/maperror.c
parent* server.c (cmd_recipient): Add more reason codes. (diff)
downloadgnupg-0c0b0f545278b1391867c5a9ad19b2506d3896d0.tar.gz
gnupg-0c0b0f545278b1391867c5a9ad19b2506d3896d0.zip
* maperror.c (map_to_assuan_status): Map more errorcodes to Bad
Certificate.
Diffstat (limited to 'common/maperror.c')
-rw-r--r--common/maperror.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/maperror.c b/common/maperror.c
index c982965d8..5e3fecd49 100644
--- a/common/maperror.c
+++ b/common/maperror.c
@@ -202,6 +202,12 @@ map_to_assuan_status (int rc)
case 0: break;
case GNUPG_Bad_CA_Certificate:
case GNUPG_Bad_Certificate:
+ case GNUPG_Wrong_Key_Usage:
+ case GNUPG_Certificate_Revoked:
+ case GNUPG_No_CRL_Known:
+ case GNUPG_CRL_Too_Old:
+ case GNUPG_No_Policy_Match:
+ case GNUPG_Certificate_Expired:
rc = ASSUAN_Bad_Certificate;
break;
case GNUPG_Bad_Certificate_Path: rc = ASSUAN_Bad_Certificate_Path; break;