Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Issue 2997983002: Completed the functionalities of SrtpTransport. (Closed)

Created:
3 years, 4 months ago by Zhi Huang
Modified:
3 years, 3 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, Zach Stein
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Completed the functionalities of SrtpTransport. The SrtpTransport takes the SRTP responsibilities from the BaseChannel and SrtpFilter. SrtpTransport is now responsible for setting the crypto keys, protecting and unprotecting the packets. SrtpTransport doesn't know if the keys are from SDES or DTLS handshake. BaseChannel is now only responsible setting the offer/answer for SDES or extracting the key from DtlsTransport and configuring the SrtpTransport. SrtpFilter is used by BaseChannel as a helper for SDES negotiation. BUG=webrtc:7013 Review-Url: https://codereview.webrtc.org/2997983002 Cr-Commit-Position: refs/heads/master@{#19636} Committed: https://chromium.googlesource.com/external/webrtc/+/e683c6871fef24d3ff64f085d6bc0e965f17fcf7

Patch Set 1 : Added unit tests for SrtpTransport. #

Total comments: 24

Patch Set 2 : Resolve comments. #

Patch Set 3 : Create the SrtpTransport by default and reset it to nullptr if the insecure RTP protocol is used. #

Total comments: 47

Patch Set 4 : Resolve the comments. #

Patch Set 5 : Remove the UpdateRtpParams method. #

Total comments: 14

Patch Set 6 : Review comments. #

Patch Set 7 : Fix the chromimum issue. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1103 lines, -910 lines) Patch
M webrtc/p2p/base/fakepackettransport.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
M webrtc/pc/channel.h View 1 2 3 6 chunks +13 lines, -12 lines 0 comments Download
M webrtc/pc/channel.cc View 1 2 3 4 5 6 14 chunks +130 lines, -158 lines 0 comments Download
M webrtc/pc/channel_unittest.cc View 1 2 3 4 5 6 7 chunks +19 lines, -19 lines 0 comments Download
M webrtc/pc/rtptransport.h View 1 2 3 4 5 6 2 chunks +12 lines, -4 lines 0 comments Download
M webrtc/pc/rtptransport.cc View 1 2 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M webrtc/pc/rtptransportinternal.h View 1 2 3 4 5 1 chunk +7 lines, -4 lines 0 comments Download
M webrtc/pc/srtpfilter.h View 1 2 3 4 chunks +26 lines, -79 lines 0 comments Download
M webrtc/pc/srtpfilter.cc View 1 2 3 6 chunks +60 lines, -280 lines 0 comments Download
M webrtc/pc/srtpfilter_unittest.cc View 1 2 3 16 chunks +31 lines, -303 lines 0 comments Download
M webrtc/pc/srtptransport.h View 1 2 3 4 5 6 3 chunks +100 lines, -10 lines 0 comments Download
M webrtc/pc/srtptransport.cc View 1 2 3 4 5 6 2 chunks +305 lines, -3 lines 0 comments Download
M webrtc/pc/srtptransport_unittest.cc View 1 2 3 4 5 1 chunk +384 lines, -38 lines 0 comments Download

Messages

Total messages: 52 (38 generated)
Zhi Huang
Hi Taylor, PTAL. I'm not confident about the external authentication part in this CL. Please ...
3 years, 4 months ago (2017-08-21 23:24:45 UTC) #5
Taylor Brandstetter
This is just what I had in mind; looks good. Though I think things can ...
3 years, 3 months ago (2017-08-23 22:13:30 UTC) #6
Zhi Huang
PTAL. https://codereview.webrtc.org/2997983002/diff/40001/webrtc/p2p/base/fakepackettransport.h File webrtc/p2p/base/fakepackettransport.h (right): https://codereview.webrtc.org/2997983002/diff/40001/webrtc/p2p/base/fakepackettransport.h#newcode91 webrtc/p2p/base/fakepackettransport.h:91: } On 2017/08/23 22:13:29, Taylor Brandstetter wrote: > ...
3 years, 3 months ago (2017-08-24 23:38:07 UTC) #9
Zhi Huang
I've some updates on this. The idea of patch3 is creating an SrtpTransport by default ...
3 years, 3 months ago (2017-08-26 00:15:51 UTC) #11
Taylor Brandstetter
Sorry for leading you wrong, but I think it would be cleaner for now to ...
3 years, 3 months ago (2017-08-26 02:40:39 UTC) #12
pthatcher
https://codereview.webrtc.org/2997983002/diff/140001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/2997983002/diff/140001/webrtc/pc/channel.cc#newcode692 webrtc/pc/channel.cc:692: if (secure()) { I think making the shorter path ...
3 years, 3 months ago (2017-08-28 21:42:57 UTC) #14
Zhi Huang
PTAL. Thanks! https://codereview.webrtc.org/2997983002/diff/140001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/2997983002/diff/140001/webrtc/pc/channel.cc#newcode122 webrtc/pc/channel.cc:122: return protocol == "RTP/AVPF" || protocol == ...
3 years, 3 months ago (2017-08-29 18:40:35 UTC) #17
Zhi Huang
I removed the UpdateRtpParams method in this patch to make it slightly easier to understand. ...
3 years, 3 months ago (2017-08-30 19:00:38 UTC) #22
Taylor Brandstetter
Looks good, just a few minor comments left https://codereview.webrtc.org/2997983002/diff/220001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/2997983002/diff/220001/webrtc/pc/channel.cc#newcode321 webrtc/pc/channel.cc:321: // ...
3 years, 3 months ago (2017-08-30 21:24:27 UTC) #23
Zhi Huang
PTAL. https://codereview.webrtc.org/2997983002/diff/220001/webrtc/pc/channel.cc File webrtc/pc/channel.cc (right): https://codereview.webrtc.org/2997983002/diff/220001/webrtc/pc/channel.cc#newcode321 webrtc/pc/channel.cc:321: // When using DTLS-SRTP, we must reset the ...
3 years, 3 months ago (2017-08-31 17:42:42 UTC) #34
Taylor Brandstetter
lgtm
3 years, 3 months ago (2017-08-31 18:24:26 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2997983002/320001
3 years, 3 months ago (2017-08-31 22:57:44 UTC) #48
commit-bot: I haz the power
Committed patchset #7 (id:320001) as https://chromium.googlesource.com/external/webrtc/+/e683c6871fef24d3ff64f085d6bc0e965f17fcf7
3 years, 3 months ago (2017-08-31 23:00:16 UTC) #51
sprang_webrtc
3 years, 3 months ago (2017-09-15 08:53:16 UTC) #52
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:320001) has been created in
https://codereview.webrtc.org/3012333003/ by sprang@webrtc.org.

The reason for reverting is: This seems to be causing some video freezes. See
https://bugs.chromium.org/p/webrtc/issues/detail?id=8251.

Powered by Google App Engine
This is Rietveld 408576698