Skip to content

Commit

Permalink
Fix argument type in a call to SSLSetEnabledCiphers (#42543)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
janvorli authored Sep 22, 2020
1 parent 22b98f0 commit c48127d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c48127d

Please sign in to comment.