Bug 195754

Summary: Move CommonCrypto SPI declarations to an appropriate PAL/spi header
Product: WebKit Reporter: Brent Fulgham <bfulgham>
Component: WebCore Misc.Assignee: Brent Fulgham <bfulgham>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, bfulgham, commit-queue, darin, ews-watchlist, jiewen_tan, ryanhaddad
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=201903
Attachments:
Description Flags
Patch
none
Patch for landing
none
Patch for landing
none
Patch for landing
none
Patch for landing
none
Patch for landing none

Brent Fulgham
Reported 2019-03-14 12:01:21 PDT
Tidy up the CoreCrypto implementation by moving the forward declarations of SPI functions into an appropriate PAL/spi location.
Attachments
Patch (20.74 KB, patch)
2019-03-14 12:06 PDT, Brent Fulgham
no flags
Patch for landing (20.84 KB, patch)
2019-03-14 17:38 PDT, Brent Fulgham
no flags
Patch for landing (20.83 KB, patch)
2019-03-14 19:48 PDT, Brent Fulgham
no flags
Patch for landing (20.68 KB, patch)
2019-03-14 20:04 PDT, Brent Fulgham
no flags
Patch for landing (20.72 KB, patch)
2019-03-14 20:10 PDT, Brent Fulgham
no flags
Patch for landing (20.72 KB, patch)
2019-03-14 20:14 PDT, Brent Fulgham
no flags
Brent Fulgham
Comment 1 2019-03-14 12:01:58 PDT
Brent Fulgham
Comment 2 2019-03-14 12:06:39 PDT
EWS Watchlist
Comment 3 2019-03-14 12:10:15 PDT
Attachment 364674 [details] did not pass style-queue: ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:28: Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file. [build/version_check] [5] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:56: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:57: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:62: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:63: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:64: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:91: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:92: enum members should use InterCaps with an initial capital letter or initial 'k' for C-style enums. [readability/enum_casing] [4] ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:105: Misplaced OS version check. Please use a named macro in wtf/Platform.h, wtf/FeatureDefines.h, or an appropriate internal file. [build/version_check] [5] Total errors found: 9 in 6 files If any of these errors are false positives, please file a bug against check-webkit-style.
Brent Fulgham
Comment 4 2019-03-14 12:10:55 PDT
(In reply to Build Bot from comment #3) > Attachment 364674 [details] did not pass style-queue: > > > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:28: Misplaced OS > version check. Please use a named macro in wtf/Platform.h, > wtf/FeatureDefines.h, or an appropriate internal file. > [build/version_check] [5] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:56: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:57: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:62: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:63: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:64: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:91: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:92: enum members > should use InterCaps with an initial capital letter or initial 'k' for > C-style enums. [readability/enum_casing] [4] > ERROR: Source/WebCore/PAL/pal/spi/cocoa/CommonCryptoSPI.h:105: Misplaced OS > version check. Please use a named macro in wtf/Platform.h, > wtf/FeatureDefines.h, or an appropriate internal file. > [build/version_check] [5] > Total errors found: 9 in 6 files > > > If any of these errors are false positives, please file a bug against > check-webkit-style. These style violations are because these are SPI declarations.
Jiewen Tan
Comment 5 2019-03-14 13:10:02 PDT
Comment on attachment 364674 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364674&action=review Thanks Brent for making this change. Really appreciate it. r=me. > Source/WebCore/ChangeLog:3 > + Move CoreCrypto SPI declarations to an appropriate PAL/spi header CommonCrypto will be more appropriate. > Source/WebCore/ChangeLog:9 > + Move the forward declarations of various CoreCrypto SPI to an appropriate PAL/spi header. Ditto. > Source/WebCore/PAL/ChangeLog:3 > + Move CoreCrypto SPI declarations to an appropriate PAL/spi header Ditto. > Source/WebCore/PAL/ChangeLog:9 > + Move the forward declarations of various CoreCrypto SPI to an appropriate PAL/spi header. Ditto.
Brent Fulgham
Comment 6 2019-03-14 13:34:24 PDT
Comment on attachment 364674 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364674&action=review >> Source/WebCore/ChangeLog:3 >> + Move CoreCrypto SPI declarations to an appropriate PAL/spi header > > CommonCrypto will be more appropriate. Doh! Will fix (in all the places)
Brent Fulgham
Comment 7 2019-03-14 13:56:48 PDT
Ryan Haddad
Comment 8 2019-03-14 17:00:11 PDT
Reverted r242963 for reason: Breaks watchOS build. Committed r242977: <https://trac.webkit.org/changeset/242977>
Ryan Haddad
Comment 9 2019-03-14 17:00:58 PDT
Details in radar.
Brent Fulgham
Comment 10 2019-03-14 17:38:38 PDT
Created attachment 364732 [details] Patch for landing
Jiewen Tan
Comment 11 2019-03-14 18:18:04 PDT
Comment on attachment 364732 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=364732&action=review > Source/WebCore/crypto/CommonCryptoUtilities.h:40 > +typedef struct _CCBigNumRef *CCBigNumRef; Maybe this needs to be outside of namespace WebCore?
WebKit Commit Bot
Comment 12 2019-03-14 18:27:15 PDT
The commit-queue encountered the following flaky tests while processing attachment 364732 [details]: legacy-animation-engine/compositing/layer-creation/mismatched-rotated-transform-transition-overlap.html bug 195787 (authors: dino@apple.com and graouts@apple.com) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 13 2019-03-14 18:28:04 PDT
Comment on attachment 364732 [details] Patch for landing Clearing flags on attachment: 364732 Committed r242981: <https://trac.webkit.org/changeset/242981>
WebKit Commit Bot
Comment 14 2019-03-14 18:28:06 PDT
All reviewed patches have been landed. Closing bug.
Darin Adler
Comment 15 2019-03-14 19:06:53 PDT
Comment on attachment 364732 [details] Patch for landing View in context: https://bugs.webkit.org/attachment.cgi?id=364732&action=review > Source/WebCore/crypto/mac/CryptoAlgorithmHKDFMac.cpp:44 > +#pragma clang diagnostic push > +#pragma clang diagnostic ignored "-Wdeprecated-declarations" Please use ALLOW_DEPRECATED_DECLARATIONS_BEGIN/END instead of using #pragma clang directly.
Brent Fulgham
Comment 16 2019-03-14 19:48:18 PDT
Reopening to attach new patch.
Brent Fulgham
Comment 17 2019-03-14 19:48:20 PDT
Created attachment 364760 [details] Patch for landing
Brent Fulgham
Comment 18 2019-03-14 19:51:04 PDT
(In reply to Darin Adler from comment #15) > Comment on attachment 364732 [details] > Patch for landing > > View in context: > https://bugs.webkit.org/attachment.cgi?id=364732&action=review > > > Source/WebCore/crypto/mac/CryptoAlgorithmHKDFMac.cpp:44 > > +#pragma clang diagnostic push > > +#pragma clang diagnostic ignored "-Wdeprecated-declarations" > > Please use ALLOW_DEPRECATED_DECLARATIONS_BEGIN/END instead of using #pragma > clang directly. Will do!
Brent Fulgham
Comment 19 2019-03-14 20:04:27 PDT
Created attachment 364762 [details] Patch for landing
Brent Fulgham
Comment 20 2019-03-14 20:10:50 PDT
Created attachment 364763 [details] Patch for landing
Brent Fulgham
Comment 21 2019-03-14 20:14:13 PDT
Created attachment 364764 [details] Patch for landing
WebKit Commit Bot
Comment 22 2019-03-14 20:31:46 PDT
Comment on attachment 364764 [details] Patch for landing Clearing flags on attachment: 364764 Committed r242988: <https://trac.webkit.org/changeset/242988>
WebKit Commit Bot
Comment 23 2019-03-14 20:31:48 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.