Title: [214837] trunk/Source/WebCore/PAL
Revision
214837
Author
mcatanz...@igalia.com
Date
2017-04-03 14:03:52 -0700 (Mon, 03 Apr 2017)

Log Message

Unreviewed, attempt to fix build with libgcrypt < 1.7.0

* pal/crypto/gcrypt/Utilities.h:

Modified Paths

Diff

Modified: trunk/Source/WebCore/PAL/ChangeLog (214836 => 214837)


--- trunk/Source/WebCore/PAL/ChangeLog	2017-04-03 20:50:33 UTC (rev 214836)
+++ trunk/Source/WebCore/PAL/ChangeLog	2017-04-03 21:03:52 UTC (rev 214837)
@@ -1,3 +1,9 @@
+2017-04-03  Michael Catanzaro  <mcatanz...@igalia.com>
+
+        Unreviewed, attempt to fix build with libgcrypt < 1.7.0
+
+        * pal/crypto/gcrypt/Utilities.h:
+
 2017-04-03  Zan Dobersek  <zdober...@igalia.com>
 
         [GCrypt] Implement CryptoKeyEC::keySizeInBits(), ::platformGeneratePair()

Modified: trunk/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h (214836 => 214837)


--- trunk/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h	2017-04-03 20:50:33 UTC (rev 214836)
+++ trunk/Source/WebCore/PAL/pal/crypto/gcrypt/Utilities.h	2017-04-03 21:03:52 UTC (rev 214837)
@@ -32,6 +32,13 @@
 namespace PAL {
 namespace GCrypt {
 
+// Copied from gcrypt.h. This macro is new in version 1.7.0, which we do not
+// want to require yet. Remove this in summer 2019.
+#ifndef gcry_cipher_final
+#define gcry_cipher_final(a) \
+            gcry_cipher_ctl ((a), GCRYCTL_FINALIZE, NULL, 0)
+#endif
+
 static inline void logError(gcry_error_t error)
 {
     WTFLogAlways("libgcrypt error: source '%s', description '%s'",
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to