From 955582917cbb841ecc219275a847d3a8a65c2866 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Mon, 3 Jun 2019 23:04:01 +0000
Subject: [PATCH] Work around stupid cryptlib version for 345.

---
 src/syncterm/st_crypt.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/syncterm/st_crypt.h b/src/syncterm/st_crypt.h
index 799ed951a5..d9a704fecd 100644
--- a/src/syncterm/st_crypt.h
+++ b/src/syncterm/st_crypt.h
@@ -6,8 +6,10 @@
 #ifndef WITHOUT_CRYPTLIB
 #include <cryptlib.h>
 #if CRYPTLIB_VERSION < 3400
+#if CRYPTLIB_VERSION < 340 || CRYPTLIB_VERSION > 999
 #define CRYPT_ATTRIBUTE_ERRORMESSAGE	CRYPT_ATTRIBUTE_INT_ERRORMESSAGE
 #endif
+#endif
 
 struct crypt_funcs {
 	int (*PopData)( C_IN CRYPT_HANDLE envelope, C_OUT void C_PTR buffer,
-- 
GitLab