aboutsummaryrefslogtreecommitdiffstats
path: root/kbx/backend-sqlite.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2021-02-10 07:32:57 +0000
committerWerner Koch <[email protected]>2021-02-10 07:32:57 +0000
commit2b75b256054427119a284792540243c3471267d4 (patch)
tree2ee874538b232116982a01c83d31503c8308dfa6 /kbx/backend-sqlite.c
parentbuild: Make make distcheck work again. (diff)
downloadgnupg-2b75b256054427119a284792540243c3471267d4.tar.gz
gnupg-2b75b256054427119a284792540243c3471267d4.zip
Require GpgRT version 1.41.
* configure.ac (NEED_GPG_ERROR_VERSION): Rename to NEED_GPGRT_VERSION and set to 1.41. * common/sysutils.c (gnupg_access): Remove code for older gpgrt versions. * kbx/backend-sqlite.c: Ditto. * sm/gpgsm.c (main): Ditto. -- We already have a requirement for a newer Libgcrypt and thus we can also require a more recent libgpgrt (aka libgpg-error) which was released before Libgcrypt.
Diffstat (limited to 'kbx/backend-sqlite.c')
-rw-r--r--kbx/backend-sqlite.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/kbx/backend-sqlite.c b/kbx/backend-sqlite.c
index 175cb938c..ae2530d1a 100644
--- a/kbx/backend-sqlite.c
+++ b/kbx/backend-sqlite.c
@@ -34,22 +34,6 @@
#include "keybox-defs.h" /* (for the openpgp parser) */
-/* Add replacement error codes; GPGRT provides SQL error codes from
- * version 1.37 on. */
-#if GPGRT_VERSION_NUMBER < 0x012500 /* 1.37 */
-
-static GPGRT_INLINE gpg_error_t
-gpg_err_code_from_sqlite (int sqlres)
-{
- return sqlres? 1500 + (sqlres & 0xff) : 0;
-}
-
-#define GPG_ERR_SQL_OK 1500
-#define GPG_ERR_SQL_ROW 1600
-#define GPG_ERR_SQL_DONE 1601
-
-#endif /*GPGRT_VERSION_NUMBER*/
-
/* Our definition of the backend handle. */
struct backend_handle_s