Fix compilation for deprecated API on macOS Mojave preview#30716
Conversation
|
This is only a temporary workaround... Is it possible to add a comment in this file with the issue you are using to track checking in your correct fix? |
|
I assume that issue is not #30599 since this issue is currently set to close it |
|
@danmosemsft changing from "fixes" to "related to", so closing the PR won't close the issue. |
|
|
||
| add_compile_options(-Wno-format-nonliteral) | ||
| add_compile_options(-Wno-disabled-macro-expansion) | ||
| add_compile_options(-Wno-deprecated-declarations) |
There was a problem hiding this comment.
Are there multiple projects that need this? If it's just the crypto shim then I'd expect this to be in that specific file.
There was a problem hiding this comment.
Should be moved to src/Native/Unix/System.Security.Cryptography.Native.Apple/CMakeLists.txt
There was a problem hiding this comment.
Currently there is only one place that defines these: this file. To be consistent with the current norm, should it be kept here?
When the second project will require it, nobody will remember that it is also in a project-specific file to move at global location.
The second one-off approach is in the .c file, such as:
corefx/src/Native/Unix/System.Net.Security.Native/pal_gssapi.h
Lines 47 to 54 in 44e5bda
and
corefx/src/Native/Unix/System.Native/pal_networking.c
Lines 844 to 850 in 44e5bda
There was a problem hiding this comment.
Currently there is only one place that defines these: this file. To be consistent with the current norm, should it be kept here?
I believe that the intention is that it will be deleted fairly soon, and if everything else is compiling without that flag then there won't be a second place.
5975697 to
df6f838
Compare
| // just ignore it for now. | ||
| } | ||
| else if (CFEqual(keyString, CFSTR("NonEmptySubject"))) | ||
| else if (CFEqual(keyString, CFSTR("NonEmptySubject")) || CFEqual(keyString, CFSTR("GrayListedKey"))) |
There was a problem hiding this comment.
@danmosemsft This line we'll want to send to release/2.1 at whatever rate we say we support Mojave
…refx#30716) * Fix compilation for deprecated API on macOS Mojave preview Fixes: dotnet/corefx#30599 * Fixing tests on macOS Mojave Commit migrated from dotnet/corefx@5e46fe1
Relates to: #30599
cc: @danmosemsft @bartonjs