aboutsummaryrefslogtreecommitdiff
path: root/webrtc.gni
diff options
context:
space:
mode:
authorBenjamin Wright <benwright@webrtc.org>2018-05-08 13:12:25 -0700
committerCommit Bot <commit-bot@chromium.org>2018-05-09 00:24:05 +0000
commitd6f86e8fca212e0f1b9b390dd31ef7579b66cc3e (patch)
treebb8719e1b374259ca20fa2355715ed627b2950cd /webrtc.gni
parent7c682e0c3512485bda285670e5a88f9bc41809be (diff)
downloadwebrtc-d6f86e8fca212e0f1b9b390dd31ef7579b66cc3e.tar.gz
This changeset adds dependency injection support for SSL Root Certs.
This extends the API surface so that custom certificates can be provided by an API user in both the standalone and factory creation paths for the OpenSSLAdapter. Prior to this change the SSL roots were hardcoded in a header file and directly included into openssladapter.cc. This forces the 100 kilobytes of certificates to always be compiled into the library. This is undesirable in certain linking cases where these certificates can be shared from another binary that already has an equivalent set of trusted roots hard coded into the binary. Support for removing the hard coded SSL roots has also been added through a new build flag. By default the hard coded SSL roots will be included and will be used if no other trusted root certificates are provided. The main goal of this CL is to reduce total binary size requirements of WebRTC by about 100kb in certain applications where adding these certificates is redundant. Change-Id: Ifd36d92b5cb32d1b3098a61ddfc244d76df8f30f Bug: chromium:526260 Change-Id: Ifd36d92b5cb32d1b3098a61ddfc244d76df8f30f Reviewed-on: https://webrtc-review.googlesource.com/64841 Commit-Queue: Benjamin Wright <benwright@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Taylor Brandstetter <deadbeef@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23180}
Diffstat (limited to 'webrtc.gni')
-rw-r--r--webrtc.gni5
1 files changed, 5 insertions, 0 deletions
diff --git a/webrtc.gni b/webrtc.gni
index 35a65e76f3..95c24d4968 100644
--- a/webrtc.gni
+++ b/webrtc.gni
@@ -31,6 +31,11 @@ if (is_ios) {
}
declare_args() {
+ # Setting this to false will require the API user to pass in their own
+ # SSLCertificateVerifier to verify the certificates presented from a
+ # TLS-TURN server. In return disabling this saves around 100kb in the binary.
+ rtc_builtin_ssl_root_certificates = true
+
# Include the iLBC audio codec?
rtc_include_ilbc = true