Skip to content
Browse files

Work around broken gcrypt includes

 * Some recent gcrypt includes are pretty much broken. Work around as
   suggested on the gcrypt mailing lists.

Reported-by: Cody Schafer (jmesmon)
Fixes-Issue: 1
  • Loading branch information...
1 parent 5205e14 commit 9d4e451eaaa8b15e59be126646c790cdcedce9a1 @bwalex committed Aug 16, 2011
Showing with 16 additions and 0 deletions.
  1. +8 −0 crypto-gcrypt.c
  2. +8 −0 pbkdf2-gcrypt.c
View
8 crypto-gcrypt.c
@@ -32,7 +32,15 @@
#include <errno.h>
#include <string.h>
+/*
+ * Yey for gcrypt and its broken includes...
+ * see http://lists.gnupg.org/pipermail/gcrypt-devel/2011-July/001830.html
+ * and http://seclists.org/wireshark/2011/Jul/208
+ * for more details...
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <gcrypt.h>
+#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#include "generic_xts.h"
#include "tcplay.h"
View
8 pbkdf2-gcrypt.c
@@ -28,7 +28,15 @@
*/
#include <errno.h>
+/*
+ * Yey for gcrypt and its broken includes...
+ * see http://lists.gnupg.org/pipermail/gcrypt-devel/2011-July/001830.html
+ * and http://seclists.org/wireshark/2011/Jul/208
+ * for more details...
+ */
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include <gcrypt.h>
+#pragma GCC diagnostic warning "-Wdeprecated-declarations"
#include "tcplay.h"

0 comments on commit 9d4e451

Please sign in to comment.
Something went wrong with that request. Please try again.