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

Issue 2594623002: Add disabled certificate check support to IceServer PeerConnection API. (Closed)

Created:
4 years ago by hnsl1
Modified:
3 years, 11 months ago
CC:
webrtc-reviews_webrtc.org, the sun, tterriberry_mozilla.com
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Add disabled certificate check support to IceServer PeerConnection API. Refactor "OPT_SSLTCP" renaming it to "OPT_TLS_FAKE", making it clear that it's not actually some kind of SSL over TCP. Also making it clear that it's mutually exclusive with OPT_TLS. Maintaining deprecated backwards compatible support for "OPT_SSLTCP". Add "OPT_TLS_INSECURE" that implements the new certificate-check disabled TLS mode, which is also mutually exclusive with the other TLS options. PortAllocator: Add a new TLS policy enum TlsCertPolicy which defines the new insecure mode and added it as a RelayCredentials member. TurnPort: Add new TLS policy member with appropriate getter and setter to avoid constructor bloat. Initialize it from the RelayCredentials after the TurnPort is created. Expose the new feature in the PeerConnection API via IceServer.tls_certificate_policy as well as via the Android JNI PeerConnection API. For security reasons we ensure that: 1) The policy is always explicitly initialized to secure. 2) API users have to explicitly integrate with the feature to use it, and will otherwise get no change in behavior. 3) The feature is not immediately exposed in non-native contexts. For example, disabling of certificate validation is not implemented via URI parsing since this would immediately allow it to be used from a web page. This is a second attempt of https://codereview.webrtc.org/2557803002/ which was rolled back in https://codereview.webrtc.org/2590153002/ BUG=webrtc:6840 Review-Url: https://codereview.webrtc.org/2594623002 Cr-Commit-Position: refs/heads/master@{#15967} Committed: https://chromium.googlesource.com/external/webrtc/+/0483362377fb38556009f2101816fa565885eef9

Patch Set 1 #

Patch Set 2 : Support deprecated OPT_SSLTCP name to prevent API breakage. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+139 lines, -18 lines) Patch
M webrtc/api/peerconnection.cc View 1 chunk +8 lines, -2 lines 0 comments Download
M webrtc/api/peerconnection_unittest.cc View 3 chunks +23 lines, -0 lines 0 comments Download
M webrtc/api/peerconnectioninterface.h View 1 chunk +14 lines, -1 line 0 comments Download
M webrtc/p2p/base/basicpacketsocketfactory.cc View 3 chunks +16 lines, -8 lines 0 comments Download
M webrtc/p2p/base/packetsocketfactory.h View 1 1 chunk +8 lines, -2 lines 0 comments Download
M webrtc/p2p/base/portallocator.h View 2 chunks +12 lines, -0 lines 0 comments Download
M webrtc/p2p/base/relayport.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M webrtc/p2p/base/tcpport.cc View 1 chunk +1 line, -1 line 0 comments Download
M webrtc/p2p/base/turnport.h View 2 chunks +7 lines, -0 lines 0 comments Download
M webrtc/p2p/base/turnport.cc View 1 chunk +7 lines, -1 line 0 comments Download
M webrtc/p2p/client/basicportallocator.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/sdk/android/api/org/webrtc/PeerConnection.java View 3 chunks +13 lines, -1 line 0 comments Download
M webrtc/sdk/android/src/jni/classreferenceholder.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webrtc/sdk/android/src/jni/peerconnection_jni.cc View 2 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
hnsl1
Please review this second attempt at https://codereview.webrtc.org/2557803002/ which maintains OPT_SSLTCP backwards compatible. For your convenience, ...
4 years ago (2016-12-20 11:30:38 UTC) #3
magjed_webrtc
lgtm, but next time, use the "Revert patchset" button on the revert CL to reland, ...
4 years ago (2016-12-20 12:26:55 UTC) #4
hnsl1
On 2016/12/20 12:26:55, magjed_webrtc wrote: > lgtm, but next time, use the "Revert patchset" button ...
4 years ago (2016-12-20 13:23:21 UTC) #5
magjed_webrtc
On 2016/12/20 13:23:21, hnsl1 wrote: > On 2016/12/20 12:26:55, magjed_webrtc wrote: > > lgtm, but ...
4 years ago (2016-12-20 13:49:57 UTC) #6
Taylor Brandstetter
On 2016/12/20 12:26:55, magjed_webrtc wrote: > lgtm, but next time, use the "Revert patchset" button ...
4 years ago (2016-12-20 18:10:34 UTC) #7
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/2594623002/20001
3 years, 11 months ago (2017-01-09 16:33:43 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 16:35:50 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/external/webrtc/+/0483362377fb38556009f2101...

Powered by Google App Engine
This is Rietveld 408576698