summaryrefslogtreecommitdiffstats
path: root/common/maperror.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2002-01-15 14:02:13 +0100
committerWerner Koch <wk@gnupg.org>2002-01-15 14:02:13 +0100
commita6a2595dba49a843ef06a9becb5822152a5a06c2 (patch)
tree075847254f850dc9337b5ff6fc11ea1fdf6326cf /common/maperror.c
parent* trustlist.c: New. (diff)
downloadgnupg2-a6a2595dba49a843ef06a9becb5822152a5a06c2.tar.xz
gnupg2-a6a2595dba49a843ef06a9becb5822152a5a06c2.zip
* maperror.c: Add mapping for Not_Trusted.
Diffstat (limited to 'common/maperror.c')
-rw-r--r--common/maperror.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/maperror.c b/common/maperror.c
index ba3a84b5f..348b473ec 100644
--- a/common/maperror.c
+++ b/common/maperror.c
@@ -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: