summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2003-12-23 11:24:49 +0100
committerWerner Koch <wk@gnupg.org>2003-12-23 11:24:49 +0100
commit6103066b175874cdb9c8425b29bf1520f8742b36 (patch)
tree5c1ddcfb832072ffab90ea64bb05a48ce725ea2a /common
parentEnable the tests directory. (diff)
downloadgnupg2-6103066b175874cdb9c8425b29bf1520f8742b36.tar.xz
gnupg2-6103066b175874cdb9c8425b29bf1520f8742b36.zip
(map_assuan_err): Prepared for a new error code.
Diffstat (limited to 'common')
-rw-r--r--common/ChangeLog4
-rw-r--r--common/maperror.c15
2 files changed, 8 insertions, 11 deletions
diff --git a/common/ChangeLog b/common/ChangeLog
index e69df733f..1b454fa13 100644
--- a/common/ChangeLog
+++ b/common/ChangeLog
@@ -1,3 +1,7 @@
+2003-12-23 Werner Koch <wk@gnupg.org>
+
+ * maperror.c (map_assuan_err): Prepared for a new error code.
+
2003-12-17 Werner Koch <wk@gnupg.org>
* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning.
diff --git a/common/maperror.c b/common/maperror.c
index 361166388..b04ec0bb3 100644
--- a/common/maperror.c
+++ b/common/maperror.c
@@ -72,6 +72,10 @@ map_assuan_err (int err)
case ASSUAN_Not_Confirmed: ec = GPG_ERR_NOT_CONFIRMED; break;
case ASSUAN_Invalid_Id: ec = GPG_ERR_INV_ID; break;
+#if 0 /* FIXME: Enable this after releasing libgpg error 0.7 */
+ case ASSUAN_Locale_Problem: ec = GPG_ERR_LOCALE_PROBLEM; break;
+#endif
+
default:
ec = err < 100? GPG_ERR_ASSUAN_SERVER_FAULT : GPG_ERR_ASSUAN;
break;
@@ -101,14 +105,3 @@ map_to_assuan_status (int rc)
return gpg_err_make (es, ec);
}
-
-
-
-
-
-
-
-
-
-
-