提交 353b8110 authored 作者: Iñaki Baz Castillo's avatar Iñaki Baz Castillo

2.2.2

上级 6bdf0001
# Changelog # Changelog
### 2.2.2
* Improve [issue #209](https://github.com/versatica/mediasoup/issues/209).
### 2.2.1 ### 2.2.1
* [Fix #209](https://github.com/versatica/mediasoup/issues/209) `DtlsTransport`: don't crash when signaled fingerprint and DTLS fingerprint do not match (thanks @yangjinecho for reporting it). * [Fix #209](https://github.com/versatica/mediasoup/issues/209) `DtlsTransport`: don't crash when signaled fingerprint and DTLS fingerprint do not match (thanks @yangjinecho for reporting it).
......
{ {
"name": "mediasoup", "name": "mediasoup",
"version": "2.2.1", "version": "2.2.2",
"description": "Cutting Edge WebRTC Video Conferencing", "description": "Cutting Edge WebRTC Video Conferencing",
"author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)", "author": "Iñaki Baz Castillo <ibc@aliax.net> (https://inakibaz.me)",
"contributors": [ "contributors": [
......
...@@ -130,7 +130,7 @@ namespace RTC ...@@ -130,7 +130,7 @@ namespace RTC
void Destroy(); void Destroy();
void Dump() const; void Dump() const;
void Run(Role localRole); void Run(Role localRole);
void SetRemoteFingerprint(Fingerprint fingerprint); bool SetRemoteFingerprint(Fingerprint fingerprint);
void ProcessDtlsData(const uint8_t* data, size_t len); void ProcessDtlsData(const uint8_t* data, size_t len);
DtlsState GetState() const; DtlsState GetState() const;
Role GetLocalRole() const; Role GetLocalRole() const;
......
...@@ -665,7 +665,7 @@ namespace RTC ...@@ -665,7 +665,7 @@ namespace RTC
} }
} }
void DtlsTransport::SetRemoteFingerprint(Fingerprint fingerprint) bool DtlsTransport::SetRemoteFingerprint(Fingerprint fingerprint)
{ {
MS_TRACE(); MS_TRACE();
...@@ -680,8 +680,10 @@ namespace RTC ...@@ -680,8 +680,10 @@ namespace RTC
{ {
MS_DEBUG_TAG(dtls, "handshake already done, processing it right now"); MS_DEBUG_TAG(dtls, "handshake already done, processing it right now");
ProcessHandshake(); return ProcessHandshake();
} }
return true;
} }
void DtlsTransport::ProcessDtlsData(const uint8_t* data, size_t len) void DtlsTransport::ProcessDtlsData(const uint8_t* data, size_t len)
......
...@@ -504,12 +504,14 @@ namespace RTC ...@@ -504,12 +504,14 @@ namespace RTC
this->hasRemoteDtlsParameters = true; this->hasRemoteDtlsParameters = true;
// Pass the remote fingerprint to the DTLS transport. // Pass the remote fingerprint to the DTLS transport.
this->dtlsTransport->SetRemoteFingerprint(fingerprint); if (this->dtlsTransport->SetRemoteFingerprint(fingerprint))
{
// Run the DTLS transport if ready. // If everything is fine, we may run the DTLS transport if ready.
MayRunDtlsTransport(); MayRunDtlsTransport();
MS_DEBUG_DEV("Transport remote DTLS parameters set [transportId:%" PRIu32 "]", this->transportId); MS_DEBUG_DEV(
"Transport remote DTLS parameters set [transportId:%" PRIu32 "]", this->transportId);
}
return this->dtlsLocalRole; return this->dtlsLocalRole;
} }
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论