Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Fix compilation for deprecated API on macOS Mojave preview (#30716)
Browse files Browse the repository at this point in the history
* Fix compilation for deprecated API on macOS Mojave preview

Fixes: #30599

* Fixing tests on macOS Mojave
  • Loading branch information
maryamariyan authored Jun 28, 2018
1 parent 50ba6a2 commit 5e46fe1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ set(NATIVECRYPTO_SOURCES
pal_x509chain.c
)

# Temporary workaround for dotnet/corefx issue #30599
add_compile_options(-Wno-deprecated-declarations)

add_library(System.Security.Cryptography.Native.Apple
SHARED
${NATIVECRYPTO_SOURCES}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ static void MergeStatusCodes(CFTypeRef key, CFTypeRef value, void* context)
// It doesn't represent a new error code, and we're still getting the old ones, so
// just ignore it for now.
}
else if (CFEqual(keyString, CFSTR("NonEmptySubject")))
else if (CFEqual(keyString, CFSTR("NonEmptySubject")) || CFEqual(keyString, CFSTR("GrayListedKey")))
{
// Not a "problem" that we report.
}
Expand Down

0 comments on commit 5e46fe1

Please sign in to comment.