summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--runtime/libgcry.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index be78cdf0..92f95b1d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
Version 7.3.12 [devel] 2013-04-??
- added doc for omelasticsearch
Thanks to Radu Gheorghe for the doc contribution.
+- platform compatibility enhancement: solve compile issue with libgcrypt
+ do not use GCRY_CIPHER_MODE_AESWRAP where not available
- bugfix: block size limit was not properly honored
- bugfix: potential segfault in guardtime signature provider
it could segfault if an error was reported by the GuardTime API, because
diff --git a/runtime/libgcry.h b/runtime/libgcry.h
index 5dde1576..83aa80cc 100644
--- a/runtime/libgcry.h
+++ b/runtime/libgcry.h
@@ -93,7 +93,9 @@ rsgcryModename2Mode(char *modename) {
if(!strcmp((char*)modename, "STREAM")) return GCRY_CIPHER_MODE_STREAM;
if(!strcmp((char*)modename, "OFB")) return GCRY_CIPHER_MODE_OFB;
if(!strcmp((char*)modename, "CTR")) return GCRY_CIPHER_MODE_CTR;
+# ifdef GCRY_CIPHER_MODE_AESWRAP
if(!strcmp((char*)modename, "AESWRAP")) return GCRY_CIPHER_MODE_AESWRAP;
+# endif
return GCRY_CIPHER_MODE_NONE;
}
#endif /* #ifndef INCLUDED_LIBGCRY_H */