-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Tls resume PoC (server stateless) #57079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5b5dc35
6bf265c
b6b40d7
9c99a25
30e8271
8cb81fb
e6460bb
179edc8
55a1770
9aed0c8
06dc955
fc5031e
3b21da7
df51d00
47f3742
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -306,10 +306,10 @@ internal static SafeSslHandle AllocateSslHandle(SafeFreeSslCredentials credentia | |||||||||||||||||
| } | ||||||||||||||||||
| finally | ||||||||||||||||||
| { | ||||||||||||||||||
| if (innerContext != null && cacheSslContext) | ||||||||||||||||||
| if (innerContext != null) | ||||||||||||||||||
| { | ||||||||||||||||||
| // We allocated new context | ||||||||||||||||||
| if (sslAuthenticationOptions.CertificateContext?.SslContexts == null || | ||||||||||||||||||
| // We allocated new context and we want to cache | ||||||||||||||||||
| if (!cacheSslContext || sslAuthenticationOptions.CertificateContext?.SslContexts == null || | ||||||||||||||||||
| !sslAuthenticationOptions.CertificateContext.SslContexts.TryAdd(sslAuthenticationOptions.EnabledSslProtocols, innerContext)) | ||||||||||||||||||
wfurt marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||||||||||||
| { | ||||||||||||||||||
| innerContext.Dispose(); | ||||||||||||||||||
|
||||||||||||||||||
| internal static SafeSslHandle AllocateSslContext(SslProtocols protocols, SafeX509Handle? certHandle, SafeEvpPKeyHandle? certKeyHandle, EncryptionPolicy policy, SslAuthenticationOptions sslAuthenticationOptions) | |
| { | |
| SafeSslHandle? context = null; | |
| // Always use SSLv23_method, regardless of protocols. It supports negotiating to the highest | |
| // mutually supported version and can thus handle any of the set protocols, and we then use | |
| // SetProtocolOptions to ensure we only allow the ones requested. | |
| using (SafeSslContextHandle innerContext = Ssl.SslCtxCreate(Ssl.SslMethods.SSLv23_method)) |
This logic is there to skip it if we put the context to cache.
Uh oh!
There was an error while loading. Please reload this page.