Title: [251061] trunk/Source/WebCore
Revision
251061
Author
[email protected]
Date
2019-10-13 12:25:47 -0700 (Sun, 13 Oct 2019)

Log Message

Fix compilation of Crypto.cpp on macOS with !WEB_CRYPTO
https://bugs.webkit.org/show_bug.cgi?id=202895

Reviewed by Alexey Proskuryakov.

Crypto.cpp does not use getCommonCryptoDigestAlgorithm(), defined in
CommonCryptoUtilities.h, but requires CommonCrypto includes which are
coming with it. However, when WEB_CRYPTO is disabled necessary
transitive includes are missing.

* page/Crypto.cpp:

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (251060 => 251061)


--- trunk/Source/WebCore/ChangeLog	2019-10-13 17:08:33 UTC (rev 251060)
+++ trunk/Source/WebCore/ChangeLog	2019-10-13 19:25:47 UTC (rev 251061)
@@ -1,3 +1,17 @@
+2019-10-13  Konstantin Tokarev  <[email protected]>
+
+        Fix compilation of Crypto.cpp on macOS with !WEB_CRYPTO
+        https://bugs.webkit.org/show_bug.cgi?id=202895
+
+        Reviewed by Alexey Proskuryakov.
+
+        Crypto.cpp does not use getCommonCryptoDigestAlgorithm(), defined in
+        CommonCryptoUtilities.h, but requires CommonCrypto includes which are
+        coming with it. However, when WEB_CRYPTO is disabled necessary
+        transitive includes are missing.
+
+        * page/Crypto.cpp:
+
 2019-10-13  Simon Fraser  <[email protected]>
 
         Convert ENinePieceImageRule into an enum class and rename

Modified: trunk/Source/WebCore/page/Crypto.cpp (251060 => 251061)


--- trunk/Source/WebCore/page/Crypto.cpp	2019-10-13 17:08:33 UTC (rev 251060)
+++ trunk/Source/WebCore/page/Crypto.cpp	2019-10-13 19:25:47 UTC (rev 251061)
@@ -37,7 +37,8 @@
 #include <wtf/CryptographicallyRandomNumber.h>
 
 #if OS(DARWIN)
-#include "CommonCryptoUtilities.h"
+#include <CommonCrypto/CommonCryptor.h>
+#include <CommonCrypto/CommonRandom.h>
 #endif
 
 namespace WebCore {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to