Projects
Multimedia
libdatachannel
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 12
View file
_service
Changed
@@ -1,7 +1,7 @@ <services> <service name="obs_scm"> <param name="filename">libdatachannel</param> - <param name="revision">6b1e2e620f1e37f0eafeee702eaea0043cb305fd</param> + <param name="revision">800e849a1ede5667caaf8f6caa1eb21e4906dd87</param> <param name="scm">git</param> <param name="submodules">disable</param> <param name="url">https://github.com/paullouisageneau/libdatachannel.git</param>
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/CMakeLists.txt -> _service:obs_scm:libdatachannel-0.24.7.obscpio/CMakeLists.txt
Changed
@@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.13) project(libdatachannel - VERSION 0.24.6 + VERSION 0.24.7 LANGUAGES CXX) set(PROJECT_DESCRIPTION "C/C++ WebRTC network library featuring Data Channels, Media Transport, and WebSockets")
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/include/rtc/version.h -> _service:obs_scm:libdatachannel-0.24.7.obscpio/include/rtc/version.h
Changed
@@ -3,7 +3,7 @@ #define RTC_VERSION_MAJOR 0 #define RTC_VERSION_MINOR 24 -#define RTC_VERSION_PATCH 6 -#define RTC_VERSION "0.24.6" +#define RTC_VERSION_PATCH 7 +#define RTC_VERSION "0.24.7" #endif
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/impl/dtlstransport.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/impl/dtlstransport.cpp
Changed
@@ -118,13 +118,15 @@ void DtlsTransport::start() { PLOG_DEBUG << "Starting DTLS transport"; - registerIncoming(); - changeState(State::Connecting); + // Set the MTU size_t mtu = mMtu.value_or(DEFAULT_MTU) - 8 - 40; // UDP/IPv6 gnutls_dtls_set_mtu(mSession, static_cast<unsigned int>(mtu)); PLOG_VERBOSE << "DTLS MTU set to " << mtu; + registerIncoming(); + changeState(State::Connecting); + enqueueRecv(); // to initiate the handshake } @@ -459,9 +461,8 @@ void DtlsTransport::start() { PLOG_DEBUG << "Starting DTLS transport"; - registerIncoming(); - changeState(State::Connecting); + // Set the MTU { std::lock_guard lock(mSslMutex); size_t mtu = mMtu.value_or(DEFAULT_MTU) - 8 - 40; // UDP/IPv6 @@ -469,6 +470,9 @@ PLOG_VERBOSE << "DTLS MTU set to " << mtu; } + registerIncoming(); + changeState(State::Connecting); + enqueueRecv(); // to initiate the handshake } @@ -856,22 +860,25 @@ void DtlsTransport::start() { PLOG_DEBUG << "Starting DTLS transport"; - registerIncoming(); - changeState(State::Connecting); - int ret, err; + // Set the MTU { std::lock_guard lock(mSslMutex); - size_t mtu = mMtu.value_or(DEFAULT_MTU) - 8 - 40; // UDP/IPv6 SSL_set_mtu(mSsl, static_cast<unsigned int>(mtu)); PLOG_VERBOSE << "DTLS MTU set to " << mtu; + } - // Initiate the handshake + registerIncoming(); + changeState(State::Connecting); + + // Initiate the handshake + int ret, err; + { + std::lock_guard lock(mSslMutex); ret = SSL_do_handshake(mSsl); err = SSL_get_error(mSsl, ret); } - openssl::check_error(err, "Handshake failed"); // start() can run on the libjuice poll thread via the ICE state-change
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/impl/iceudpmuxlistener.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/impl/iceudpmuxlistener.cpp
Changed
@@ -28,7 +28,8 @@ } #endif -IceUdpMuxListener::IceUdpMuxListener(uint16_t port, maybe_unused optional<string> bindAddress) : port(port) { +IceUdpMuxListener::IceUdpMuxListener(uint16_t port, maybe_unused optional<string> bindAddress) + : port(port), mStopped(false) { PLOG_VERBOSE << "Creating IceUdpMuxListener"; #if !USE_NICE
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/impl/pollinterrupter.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/impl/pollinterrupter.cpp
Changed
@@ -22,7 +22,10 @@ #ifdef _WIN32 struct addrinfo *ai = NULL; struct addrinfo hints = {}; - hints.ai_family = AF_UNSPEC; + // Specifically use IPv4, as some systems might not support IPv6 loopback + // sockets or they might not work due to use of specific software, like + // system-wide tunneling software that is only configured to work with IPv4. + hints.ai_family = AF_INET; hints.ai_socktype = SOCK_DGRAM; hints.ai_protocol = IPPROTO_UDP; hints.ai_flags = AI_PASSIVE | AI_NUMERICSERV;
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/impl/websocket.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/impl/websocket.cpp
Changed
@@ -76,7 +76,7 @@ // Modified regex from RFC 3986, see https://www.rfc-editor.org/rfc/rfc3986.html#appendix-B static const char *rs = - R"(^((^:.@/?#+):)?(/{0,2}(((^:@*)(:(^@*))?)@)?((^:/?#*)(:(^/?#*))?))?(^?#*)(\?(^#*))?(#(.*))?)"; + R"(^((^:.@/?#+):)?(/{0,2}(((^:@*)(:(^@*))?)@)?((\^\*\|^:/?#*)(:(^/?#*))?))?(^?#*)(\?(^#*))?(#(.*))?)"; static const std::regex r(rs, std::regex::extended); @@ -110,12 +110,11 @@ } if (hostname.front() == '' && hostname.back() == '') { - // IPv6 literal + // IPv6 literal, possibly with a zone (RFC 6874: %25 followed by the zone) hostname.erase(hostname.begin()); hostname.pop_back(); - } else { - hostname = utils::url_decode(hostname); } + hostname = utils::url_decode(hostname); string path = m13; if (path.empty()) @@ -369,7 +368,14 @@ }); }; - bool verify = mHostname.has_value() && !config.disableTlsVerification; + // The zone of an IPv6 literal only matters to getaddrinfo(), not to TLS. Only an IPv6 + // literal can contain ':', as the URL regex excludes it from names. + optional<string> tlsHost = mHostname; + if (tlsHost && tlsHost->find(':') != string::npos) + if (auto pos = tlsHost->find('%'); pos != string::npos) + tlsHost->resize(pos); + + bool verify = tlsHost.has_value() && !config.disableTlsVerification; #ifdef _WIN32 if (std::exchange(verify, false)) { @@ -379,12 +385,12 @@ shared_ptr<TlsTransport> transport; if (verify) - transport = std::make_shared<VerifiedTlsTransport>(lower, mHostname.value(), - mCertificate, stateChangeCallback, + transport = std::make_shared<VerifiedTlsTransport>(lower, tlsHost.value(), mCertificate, + stateChangeCallback, config.caCertificatePemFile); else transport = - std::make_shared<TlsTransport>(lower, mHostname, mCertificate, stateChangeCallback); + std::make_shared<TlsTransport>(lower, tlsHost, mCertificate, stateChangeCallback); return emplaceTransport(this, &mTlsTransport, std::move(transport));
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/pacinghandler.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/pacinghandler.cpp
Changed
@@ -40,7 +40,7 @@ // Send packets while there is budget, allow a single partial packet over budget while (!mRtpBuffer.empty() && mBudget > 0) { auto size = int(mRtpBuffer.front()->size()); - send(std::move(mRtpBuffer.front())); + send(mRtpBuffer.front()); mRtpBuffer.pop(); mBudget -= size; }
View file
_service:obs_scm:libdatachannel-0.24.6.obscpio/src/rtp.cpp -> _service:obs_scm:libdatachannel-0.24.7.obscpio/src/rtp.cpp
Changed
@@ -203,7 +203,7 @@ uint8_t RtcpReportBlock::getFractionLost() const { // Fraction lost is expressed as 8-bit fixed point number // In order to get actual lost percentage divide the result by 256 - return (uint8_t) ((ntohl(_fractionLostAndPacketsLost) & 0xFF00000) >> 24); + return (uint8_t) ((ntohl(_fractionLostAndPacketsLost) & 0xFF000000) >> 24); } uint32_t RtcpReportBlock::getPacketsLostCount() const {
View file
_service:obs_scm:libdatachannel.obsinfo
Changed
@@ -1,4 +1,4 @@ name: libdatachannel -version: 0.24.6 -mtime: 1790460966 -commit: 6b1e2e620f1e37f0eafeee702eaea0043cb305fd +version: 0.24.7 +mtime: 1795221830 +commit: 800e849a1ede5667caaf8f6caa1eb21e4906dd87
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.