mirror of
https://github.com/OMGeeky/yup-oauth2.git
synced 2026-01-02 01:16:15 +01:00
Recently, commits were made to remove support for using rustls/ring in lieu of OpenSSL to avoid having to add those as dependencies in environments where OpenSSL already exists. However, yup-oauth2 is being used in some environments where *OpenSSL* doesn't exist. So, retaining the option to build it with an openssl-free stack is key. Note, the change to hyper-native-tls is fine and actually unrelated, because this is often happening on Windows or Mac enviornments, where the stack that will link to is *not* necessarily OpenSSL either. For example, the particular breakage that prompted this CR is a build of yup-oauth2 on iOS. In that environment, hyper-native-tls uses Apple's Security Framework, but OpenSSL libraries are not actually present on all devices/simulator environments. So a link against a mix of Security Framework and rustls make sense, there. Also, update to a newer version of rustls/ring while we're at it.