summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-10-01 12:36:41 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-10-01 12:36:41 (GMT)
commit65514177e6b9d096b5f6a822a1699e474d791f03 (patch)
tree26595baf60b4ee4399cbef1c220dd23ea87cc770
parent2162348b57df1b342c29d264223a5aef4f87d882 (diff)
Fix compilation with older versions of gpgme.
BUG: 368462
-rw-r--r--core/convert.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/convert.cpp b/core/convert.cpp
index 8a1e545..1f30739 100644
--- a/core/convert.cpp
+++ b/core/convert.cpp
@@ -27,6 +27,14 @@
#include "kgpgsettings.h"
+// Backport of gpgme enums from version 1.7.0
+#ifndef GPGME_PK_EDDSA
+#define GPGME_PK_EDDSA 303
+#endif
+#ifndef GPGME_PK_ECC
+#define GPGME_PK_ECC 18
+#endif
+
/* Conversion from OpenPGP algorithm number to GPGME algorithm numbers. */
static int _gpgme_map_pk_algo (int algo)
{