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

Issue 2017943002: Replacing DtlsIdentityStoreInterface with RTCCertificateGeneratorInterface. (Closed)

Created:
4 years, 6 months ago by hbos
Modified:
4 years, 6 months ago
Reviewers:
tommi
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Replacing DtlsIdentityStoreInterface with RTCCertificateGeneratorInterface. The store was used in WebRtcSessionDescriptionFactory to generate certificates, now a generator is used instead (new API). PeerConnection[Factory][Interface], and WebRtcSession are updated to pass generators all the way down to the WebRtcSessionDescriptionFactory instead of stores. The webrtc implementation of a generator, RTCCertificateGenerator, is used as the default generator (peerconnectionfactory.cc:189) instead of the webrtc implementation of a store, DtlsIdentityStoreImpl. The generator is fully parameterized and does not generate RSA-1024 unless you ask for it (which makes sense not to do beforehand since ECDSA is now default). The store was not fully parameterized (known filed bug). The "top" layer, PeerConnectionFactoryInterface::CreatePeerConneciton, is updated to take a generator instead of a store. Many unittests still use a store, to allow them to continue to do so the factory gets CreatePeerConnectionWithStore which uses the old function signature (and invokes the new signature by wrapping the store in an RTCCertificateGeneratorStoreWrapper). As soon as the FakeDtlsIdentityStore is turned into a certificate generator instead of a store, the unittests will be updated and we can remove CreatePeerConnectionWithStore. This is a reupload of https://codereview.webrtc.org/2013523002/ with minor changes. BUG=webrtc:5707, webrtc:5708 R=tommi@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/d03c23b216b6f1ff1b9c9e4fae75151607813f40

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+204 lines, -194 lines) Patch
M webrtc/api/peerconnection.h View 2 chunks +1 line, -2 lines 0 comments Download
M webrtc/api/peerconnection.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webrtc/api/peerconnection_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/peerconnectionfactory.h View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/api/peerconnectionfactory.cc View 6 chunks +26 lines, -24 lines 0 comments Download
M webrtc/api/peerconnectionfactory_unittest.cc View 7 chunks +27 lines, -20 lines 0 comments Download
M webrtc/api/peerconnectionfactoryproxy.h View 4 chunks +6 lines, -6 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 2 chunks +37 lines, -2 lines 0 comments Download
M webrtc/api/peerconnectioninterface_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/test/peerconnectiontestwrapper.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/webrtcsession.h View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/api/webrtcsession.cc View 3 chunks +7 lines, -8 lines 0 comments Download
M webrtc/api/webrtcsession_unittest.cc View 1 chunk +4 lines, -1 line 0 comments Download
M webrtc/api/webrtcsessiondescriptionfactory.h View 6 chunks +28 lines, -37 lines 0 comments Download
M webrtc/api/webrtcsessiondescriptionfactory.cc View 6 chunks +56 lines, -82 lines 0 comments Download

Messages

Total messages: 10 (6 generated)
hbos
Please take a look, tommi. This is a reupload of https://codereview.webrtc.org/2013523002/ which was reverted. The ...
4 years, 6 months ago (2016-05-27 14:13:45 UTC) #3
tommi
lgtm
4 years, 6 months ago (2016-05-30 10:52:46 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2017943002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2017943002/1
4 years, 6 months ago (2016-06-01 09:26:55 UTC) #6
hbos
4 years, 6 months ago (2016-06-01 09:44:36 UTC) #10
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
d03c23b216b6f1ff1b9c9e4fae75151607813f40 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698