Title: [234659] trunk/Source
- Revision
- 234659
- Author
- [email protected]
- Date
- 2018-08-07 11:07:31 -0700 (Tue, 07 Aug 2018)
Log Message
Unreviewed, suppress warnings to fix the build.
Source/WebCore:
* crypto/CommonCryptoUtilities.cpp:
(WebCore::getCommonCryptoDigestAlgorithm):
Source/WebCore/PAL:
* pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp:
(PAL::CryptoDigest::create):
(PAL::CryptoDigest::addBytes):
(PAL::CryptoDigest::computeHash):
Source/WTF:
* wtf/SHA1.cpp:
(WTF::SHA1::SHA1):
(WTF::SHA1::addBytes):
(WTF::SHA1::computeHash):
Modified Paths
Diff
Modified: trunk/Source/WTF/ChangeLog (234658 => 234659)
--- trunk/Source/WTF/ChangeLog 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WTF/ChangeLog 2018-08-07 18:07:31 UTC (rev 234659)
@@ -1,3 +1,12 @@
+2018-08-07 Ryan Haddad <[email protected]>
+
+ Unreviewed, suppress warnings to fix the build.
+
+ * wtf/SHA1.cpp:
+ (WTF::SHA1::SHA1):
+ (WTF::SHA1::addBytes):
+ (WTF::SHA1::computeHash):
+
2018-08-07 Karo Gyoker <[email protected]>
Hardcoded LFENCE instruction
Modified: trunk/Source/WTF/wtf/SHA1.cpp (234658 => 234659)
--- trunk/Source/WTF/wtf/SHA1.cpp 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WTF/wtf/SHA1.cpp 2018-08-07 18:07:31 UTC (rev 234659)
@@ -41,17 +41,26 @@
SHA1::SHA1()
{
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Init(&m_context);
+#pragma clang diagnostic pop
}
void SHA1::addBytes(const uint8_t* input, size_t length)
{
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Update(&m_context, input, length);
+#pragma clang diagnostic pop
}
void SHA1::computeHash(Digest& hash)
{
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Final(hash.data(), &m_context);
+#pragma clang diagnostic pop
}
#else
Modified: trunk/Source/WebCore/ChangeLog (234658 => 234659)
--- trunk/Source/WebCore/ChangeLog 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WebCore/ChangeLog 2018-08-07 18:07:31 UTC (rev 234659)
@@ -1,3 +1,10 @@
+2018-08-07 Ryan Haddad <[email protected]>
+
+ Unreviewed, suppress warnings to fix the build.
+
+ * crypto/CommonCryptoUtilities.cpp:
+ (WebCore::getCommonCryptoDigestAlgorithm):
+
2018-08-07 Alex Christensen <[email protected]>
Removed unused *AllInOne.cpp
Modified: trunk/Source/WebCore/PAL/ChangeLog (234658 => 234659)
--- trunk/Source/WebCore/PAL/ChangeLog 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WebCore/PAL/ChangeLog 2018-08-07 18:07:31 UTC (rev 234659)
@@ -1,3 +1,12 @@
+2018-08-07 Ryan Haddad <[email protected]>
+
+ Unreviewed, suppress warnings to fix the build.
+
+ * pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp:
+ (PAL::CryptoDigest::create):
+ (PAL::CryptoDigest::addBytes):
+ (PAL::CryptoDigest::computeHash):
+
2018-08-07 Per Arne Vollan <[email protected]>
[macOS] Scrollbars are not visible when using 3rd party mouse
Modified: trunk/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp (234658 => 234659)
--- trunk/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WebCore/PAL/pal/crypto/commoncrypto/CryptoDigestCommonCrypto.cpp 2018-08-07 18:07:31 UTC (rev 234659)
@@ -97,7 +97,10 @@
case CryptoDigest::Algorithm::SHA_1: {
CC_SHA1_CTX* context = new CC_SHA1_CTX;
digest->m_context->ccContext = context;
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Init(context);
+#pragma clang diagnostic pop
return digest;
}
case CryptoDigest::Algorithm::SHA_224: {
@@ -131,7 +134,10 @@
{
switch (m_context->algorithm) {
case CryptoDigest::Algorithm::SHA_1:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Update(toSHA1Context(m_context.get()), input, length);
+#pragma clang diagnostic pop
return;
case CryptoDigest::Algorithm::SHA_224:
CC_SHA224_Update(toSHA224Context(m_context.get()), input, length);
@@ -154,7 +160,10 @@
switch (m_context->algorithm) {
case CryptoDigest::Algorithm::SHA_1:
result.resize(CC_SHA1_DIGEST_LENGTH);
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
CC_SHA1_Final(result.data(), toSHA1Context(m_context.get()));
+#pragma clang diagnostic pop
break;
case CryptoDigest::Algorithm::SHA_224:
result.resize(CC_SHA224_DIGEST_LENGTH);
Modified: trunk/Source/WebCore/crypto/CommonCryptoUtilities.cpp (234658 => 234659)
--- trunk/Source/WebCore/crypto/CommonCryptoUtilities.cpp 2018-08-07 17:36:47 UTC (rev 234658)
+++ trunk/Source/WebCore/crypto/CommonCryptoUtilities.cpp 2018-08-07 18:07:31 UTC (rev 234659)
@@ -52,7 +52,10 @@
{
switch (hashFunction) {
case CryptoAlgorithmIdentifier::SHA_1:
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
algorithm = kCCDigestSHA1;
+#pragma clang diagnostic pop
return true;
case CryptoAlgorithmIdentifier::SHA_224:
algorithm = kCCDigestSHA224;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes