FreeBSD Bugzilla – Attachment 227283 Details for
Bug 257912
Please mark net-im/tg_owt broken with DEFAULT_VERSIONS+= ssl=libressl*
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Adds libressl headers and ifdefs
patch-src_rtc__base_openssl__stream__adapter.cc (text/plain), 1.60 KB, created by
Filipe da Silva Santos
on 2021-08-17 14:19:10 UTC
(
hide
)
Description:
Adds libressl headers and ifdefs
Filename:
MIME Type:
Creator:
Filipe da Silva Santos
Created:
2021-08-17 14:19:10 UTC
Size:
1.60 KB
patch
obsolete
>--- src/rtc_base/openssl_stream_adapter.cc 2020-11-21 19:24:00 UTC >+++ src/rtc_base/openssl_stream_adapter.cc >@@ -17,8 +17,11 @@ > #include <openssl/tls1.h> > #include <openssl/x509v3.h> > #ifndef OPENSSL_IS_BORINGSSL >-#include <openssl/dtls1.h> > #include <openssl/ssl.h> >+#ifdef LIBRESSL_VERSION_NUMBER >+#include <openssl/ssl3.h> >+#endif >+#include <openssl/dtls1.h> > #endif > > #include <memory> >@@ -392,8 +395,10 @@ SSLProtocolVersion OpenSSLStreamAdapter::GetSslVersion() const { > if (ssl_mode_ == SSL_MODE_DTLS) { > if (ssl_version == DTLS1_VERSION) { > return SSL_PROTOCOL_DTLS_10; >+#ifndef LIBRESSL_VERSION_NUMBER > } else if (ssl_version == DTLS1_2_VERSION) { > return SSL_PROTOCOL_DTLS_12; >+#endif > } > } else { > if (ssl_version == TLS1_VERSION) { >@@ -985,15 +990,27 @@ SSL_CTX* OpenSSLStreamAdapter::SetupSSLContext() { > case SSL_PROTOCOL_TLS_12: > default: > SSL_CTX_set_max_proto_version( >+#ifdef LIBRESSL_VERSION_NUMBER >+ ctx, TLS1_2_VERSION); >+#else > ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION); >+#endif > break; > } > } else { > // TODO(https://bugs.webrtc.org/10261): Make this the default in M84. > SSL_CTX_set_min_proto_version( >+#ifdef LIBRESSL_VERSION_NUMBER >+ ctx, TLS1_2_VERSION); >+#else > ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION); >+#endif > SSL_CTX_set_max_proto_version( >+#ifdef LIBRESSL_VERSION_NUMBER >+ ctx, TLS1_2_VERSION); >+#else > ctx, ssl_mode_ == SSL_MODE_DTLS ? DTLS1_2_VERSION : TLS1_2_VERSION); >+#endif > } > > #ifdef OPENSSL_IS_BORINGSSL
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257912
: 227283