diff --git a/build/config/mac/mac_sdk.gni b/build/config/mac/mac_sdk.gni index 7d3f337b58d..e0d68f3a846 100644 --- a/build/config/mac/mac_sdk.gni +++ b/build/config/mac/mac_sdk.gni @@ -6,11 +6,7 @@ import("//build/toolchain/rbe.gni") declare_args() { # Minimum supported version of the Mac SDK. - # - # TODO: When the minimum supported SDK version is incremented to "10.15", - # remove the usage of `SecTrustEvaluate` from - # runtime/bin/security_context_macos.cc - mac_sdk_min = "10.14" + mac_sdk_min = "14.0" # Path to a specific version of the Mac SDK, not including a backslash at # the end. If empty, the path to the lowest version greater than or equal to diff --git a/runtime/bin/security_context_macos.cc b/runtime/bin/security_context_macos.cc index 287c532c4b4..fa067ccbfca 100644 --- a/runtime/bin/security_context_macos.cc +++ b/runtime/bin/security_context_macos.cc @@ -9,7 +9,6 @@ #include "bin/security_context.h" -#include #include #include #include @@ -289,11 +288,6 @@ static void TrustEvaluateHandler(Dart_Port dest_port_id, } // Perform the certificate verification. - // The result is ignored as we get more information from the following call - // to SecTrustGetTrustResult which also happens to match the information we - // got from calling SecTrustEvaluate before macOS 10.14. - bool res = SecTrustEvaluateWithError(trust.get(), nullptr); - USE(res); OSStatus status = SecTrustGetTrustResult(trust.get(), &trust_result); postReply(reply_port_id,