Uh oh!
There was an error while loading. Please reload this page.
make sure OpenSSL is initialized before Tls13Supported code runs - #62973
Conversation
ghost
commented
Dec 17, 2021
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue Detailsreplacement for #62037 This is regression caused by #46640. Tls13Supported can be called before static constructor runs. It was OK in 5.0 since the OpenSSL library was initialized via __attribute__((constructor))
staticvoidInitializeOpenSSLShim()With 6.0, it will be initialized when Ssl us fixes #61891.
|
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…aphy.Native/Interop.Ssl.cs Co-authored-by: Stephen Toub <stoub@microsoft.com>
wfurt
commented
Jan 4, 2022
/backport to release/6.0 |
Started backporting to release/6.0: https://github.com/dotnet/runtime/actions/runs/1655706648 |
@wfurt backporting to release/6.0 failed, the patch most likely resulted in conflicts: $ git am --3way --ignore-whitespace --keep-non-patch changes.patch
Applying: make sure OpenSSL is initialized before Tls13Supported code runs
Using index info to reconstruct a base tree...
M src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.OpenSsl.cs
M src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs
Falling back to patching base and 3-way merge...
Auto-merging src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs
CONFLICT (content): Merge conflict in src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.Ssl.cs
Auto-merging src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.OpenSsl.cs
CONFLICT (content): Merge conflict in src/libraries/Common/src/Interop/Unix/System.Security.Cryptography.Native/Interop.OpenSsl.cs
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0001 make sure OpenSSL is initialized before Tls13Supported code runs
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128Please backport manually! |
replacement for #62037
This is regression caused by #46640. Tls13Supported can be called before static constructor runs. It was OK in 5.0 since the OpenSSL library was initialized via
With 6.0, it will be initialized when Ssl us
used but some properties like CiphersSuitePolicy can be used before in order to prepare everything needed.
fixes#61891.