[release/6.0-rc1] [MacCatalyst] Make AppleCryptoNative_SslSetEnabledCipherSuites...
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Fri, 27 Aug 2021 18:18:59 +0000 (11:18 -0700)
committerGitHub <noreply@github.com>
Fri, 27 Aug 2021 18:18:59 +0000 (11:18 -0700)
commit7a1f2a44312f71646dcbf2d4d011ec7faadde41c
treeab40368c9bc854c736a8ab2c483c7654d5ab8d88
parent0cd887c8b697d341adcd73f125cf7dc777754938
[release/6.0-rc1] [MacCatalyst] Make AppleCryptoNative_SslSetEnabledCipherSuites check for 32 bit & 16 bit SSLCipherSuite (#58182)

* [MacCatalyst] Make AppleCryptoNative_SslSetEnabledCipherSuites check for 32 bit & 16 bit SSLCipherSuite

According to CipherSuites.h, SSLCipherSuite is a 16 bit value on iOS/tvOS x64 & arm64, but on MacCatalyst that is only true on arm64.  x64 is defined as 32 bit.

```
/* 16-bit value on iOS */
typedef uint16_t SSLCipherSuite;
/* 32-bit value elsewhere */
typedef uint32_t SSLCipherSuite;
```

Fixes https://github.com/dotnet/runtime/issues/53120

* Feedback

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
src/libraries/Native/Unix/System.Security.Cryptography.Native.Apple/pal_ssl.c