aboutsummaryrefslogtreecommitdiffstats
path: root/common/util.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-09-28 16:13:37 +0000
committerWerner Koch <[email protected]>2015-09-28 16:40:38 +0000
commitf1effdc5ecd0cc52a28db7ae28a5c28f33486542 (patch)
tree3d6bf53654797a7c6e1ab30ff6b13545d53f1aba /common/util.h
parentdoc,w32: Fix compiler warnings. (diff)
downloadgnupg-f1effdc5ecd0cc52a28db7ae28a5c28f33486542.tar.gz
gnupg-f1effdc5ecd0cc52a28db7ae28a5c28f33486542.zip
common: Provide two new error code replacements.
* common/util.h (GPG_ERR_FALSE, GPG_ERR_TRUE): Rew replcements. Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'common/util.h')
-rw-r--r--common/util.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/util.h b/common/util.h
index 66749eaaa..af1a31914 100644
--- a/common/util.h
+++ b/common/util.h
@@ -125,6 +125,10 @@
# define GPG_ERR_LDAP_ASSERTION_FAILED 890
# define GPG_ERR_LDAP_PROX_AUTH_DENIED 891
#endif /*GPG_ERROR_VERSION_NUMBER < 0x011300*/
+#if GPG_ERROR_VERSION_NUMBER < 0x011500 /* 1.21 */
+# define GPG_ERR_TRUE 255
+# define GPG_ERR_FALSE 256
+#endif
/* Hash function used with libksba. */
#define HASH_FNC ((void (*)(void *, const void*,size_t))gcry_md_write)