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

Issue 1416673006: Convert internal representation of Srtp cryptos from string to int. (Closed)

Created:
5 years, 1 month ago by guoweis_webrtc
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Convert internal representation of Srtp cryptos from string to int. Note that the coversion from int to string happens in 3 places 1) SDP layer from int to external names. mediasession.cc GetSupportedSuiteNames. 2) for SSL_CTX_set_tlsext_use_srtp(), converting from int to internal names. 3) stats collection also needs external names. External names are like AES_CM_128_HMAC_SHA1_80, specified in sslstreamadapter.cc. Internal names are like SRTP_AES128_CM_SHA1_80, specified in opensslstreamadapter.cc. The conversion from string to int happens in one place only, SDP layer, SrtpFilter::ApplyParams(). BUG=webrtc:5043 Committed: https://crrev.com/2764e1027a08a5543e04b854a27a520801faf6eb Cr-Commit-Position: refs/heads/master@{#10701}

Patch Set 1 #

Patch Set 2 : rename two functions. #

Patch Set 3 : Add back an old function name to prevent build break in chromium. #

Total comments: 36

Patch Set 4 : rebase #

Patch Set 5 : rename vars #

Patch Set 6 : remove thread checker #

Total comments: 11

Patch Set 7 : address comments. #

Patch Set 8 : missed a name change. #

Patch Set 9 : fix a bug #

Patch Set 10 : change srtp crypto name conversion #

Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -348 lines) Patch
M talk/app/webrtc/peerconnection_unittest.cc View 1 2 3 9 chunks +21 lines, -21 lines 0 comments Download
M talk/app/webrtc/statscollector.cc View 1 2 3 4 5 6 1 chunk +11 lines, -8 lines 0 comments Download
M talk/app/webrtc/statscollector_unittest.cc View 1 2 3 4 5 6 3 chunks +20 lines, -23 lines 0 comments Download
M talk/app/webrtc/webrtcsession.cc View 1 2 3 4 5 6 2 chunks +10 lines, -8 lines 0 comments Download
M talk/media/base/cryptoparams.h View 1 chunk +4 lines, -2 lines 0 comments Download
M talk/session/media/channel.h View 1 2 3 5 chunks +6 lines, -7 lines 0 comments Download
M talk/session/media/channel.cc View 1 2 3 7 8 9 7 chunks +26 lines, -35 lines 0 comments Download
M talk/session/media/mediasession.h View 1 2 3 7 8 9 1 chunk +13 lines, -4 lines 0 comments Download
M talk/session/media/mediasession.cc View 1 2 3 4 5 6 7 8 9 5 chunks +46 lines, -15 lines 0 comments Download
M talk/session/media/srtpfilter.h View 3 chunks +7 lines, -7 lines 0 comments Download
M talk/session/media/srtpfilter.cc View 1 2 3 4 5 6 chunks +16 lines, -17 lines 0 comments Download
M talk/session/media/srtpfilter_unittest.cc View 10 chunks +46 lines, -56 lines 0 comments Download
M webrtc/base/opensslstreamadapter.h View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/base/opensslstreamadapter.cc View 1 2 3 8 chunks +21 lines, -27 lines 0 comments Download
M webrtc/base/sslstreamadapter.h View 1 2 3 4 5 6 5 chunks +15 lines, -8 lines 0 comments Download
M webrtc/base/sslstreamadapter.cc View 1 2 3 4 5 6 4 chunks +18 lines, -10 lines 0 comments Download
M webrtc/base/sslstreamadapter_unittest.cc View 1 3 chunks +44 lines, -47 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel.cc View 1 4 chunks +10 lines, -11 lines 0 comments Download
M webrtc/p2p/base/dtlstransportchannel_unittest.cc View 1 2 3 4 5 6 7 4 chunks +12 lines, -13 lines 0 comments Download
M webrtc/p2p/base/faketransportcontroller.h View 1 2 3 4 5 6 4 chunks +12 lines, -13 lines 0 comments Download
M webrtc/p2p/base/p2ptransportchannel.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transport.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transport.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M webrtc/p2p/base/transportchannel.h View 1 2 3 1 chunk +5 lines, -4 lines 0 comments Download
M webrtc/p2p/base/transportchannel.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (18 generated)
guoweis_webrtc
PTAL.
5 years, 1 month ago (2015-10-29 18:31:02 UTC) #4
pthatcher1
Looks much better, but I think we can improve some more places to be more ...
5 years, 1 month ago (2015-11-11 19:59:41 UTC) #6
guoweis_webrtc
PTAL. I ended up renaming these vars. https://codereview.webrtc.org/1416673006/diff/40001/talk/app/webrtc/peerconnection_unittest.cc File talk/app/webrtc/peerconnection_unittest.cc (right): https://codereview.webrtc.org/1416673006/diff/40001/talk/app/webrtc/peerconnection_unittest.cc#newcode114 talk/app/webrtc/peerconnection_unittest.cc:114: static const ...
5 years, 1 month ago (2015-11-17 01:21:16 UTC) #7
pthatcher1
lgtm
5 years, 1 month ago (2015-11-17 21:02:05 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673006/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673006/100001
5 years, 1 month ago (2015-11-17 21:14:35 UTC) #10
juberti
lgtm with a few comments https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc File talk/session/media/mediasession.cc (right): https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc#newcode196 talk/session/media/mediasession.cc:196: void GetDefaultSrtpCryptoSuiteNames( Seems like ...
5 years, 1 month ago (2015-11-17 21:19:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673006/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673006/120001
5 years, 1 month ago (2015-11-18 18:41:27 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_msan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_msan/builds/6027) linux_rel on tryserver.webrtc (JOB_FAILED, ...
5 years, 1 month ago (2015-11-18 18:43:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673006/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673006/140001
5 years, 1 month ago (2015-11-18 18:45:30 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/10735)
5 years, 1 month ago (2015-11-18 18:54:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673006/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673006/160001
5 years, 1 month ago (2015-11-18 19:17:11 UTC) #26
guoweis_webrtc
Landing this now. https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc File talk/session/media/mediasession.cc (right): https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc#newcode196 talk/session/media/mediasession.cc:196: void GetDefaultSrtpCryptoSuiteNames( On 2015/11/17 21:19:08, juberti ...
5 years, 1 month ago (2015-11-18 19:17:18 UTC) #27
juberti
https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc File talk/session/media/mediasession.cc (right): https://codereview.webrtc.org/1416673006/diff/100001/talk/session/media/mediasession.cc#newcode196 talk/session/media/mediasession.cc:196: void GetDefaultSrtpCryptoSuiteNames( On 2015/11/18 19:17:17, guoweis wrote: > On ...
5 years, 1 month ago (2015-11-18 20:19:15 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1416673006/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1416673006/180001
5 years, 1 month ago (2015-11-18 23:49:50 UTC) #32
juberti
lgtm
5 years, 1 month ago (2015-11-19 01:26:48 UTC) #33
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-19 02:02:36 UTC) #34
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/2764e1027a08a5543e04b854a27a520801faf6eb Cr-Commit-Position: refs/heads/master@{#10701}
5 years, 1 month ago (2015-11-19 02:02:51 UTC) #35
guoweis_webrtc
5 years, 1 month ago (2015-11-19 03:03:14 UTC) #36
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.webrtc.org/1455233005/ by guoweis@webrtc.org.

The reason for reverting is: Broke chromium fyi build. .

Powered by Google App Engine
This is Rietveld 408576698