From c48127daec460692ee18f7ae7552bcc3f7fa8499 Mon Sep 17 00:00:00 2001 From: Jan Vorlicek Date: Tue, 22 Sep 2020 10:44:08 +0200 Subject: [PATCH] Fix argument type in a call to SSLSetEnabledCiphers (#42543) The latest version of macOS clang from XCode 12 beta complains about data type of the 2nd argument passed to SSLSetEnabledCiphers. This change fixes it by casting it to the actual argument type. --- .../Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c b/src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c index 78497ce..ac0d06b 100644 --- a/src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c +++ b/src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c @@ -594,7 +594,7 @@ int32_t AppleCryptoNative_SslSetEnabledCipherSuites(SSLContextRef sslContext, co #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wdeprecated-declarations" // macOS - return SSLSetEnabledCiphers(sslContext, cipherSuites, (size_t)numCipherSuites); + return SSLSetEnabledCiphers(sslContext, (const SSLCipherSuite *)cipherSuites, (size_t)numCipherSuites); #pragma clang diagnostic pop } else -- 2.7.4