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

Unified Diff: webrtc/base/sslidentity.cc

Issue 1683193003: Implement certificate lifetime parameter as required by WebRTC RFC. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Address feedback Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/base/sslidentity.cc
diff --git a/webrtc/base/sslidentity.cc b/webrtc/base/sslidentity.cc
index 5f6b6869dd4db39cea25207532b41f6739255864..536e3aa7dc46726273cc16d598296a6ec8172d74 100644
--- a/webrtc/base/sslidentity.cc
+++ b/webrtc/base/sslidentity.cc
@@ -159,8 +159,10 @@ SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) {
}
SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
- const KeyParams& key_params) {
- return OpenSSLIdentity::Generate(common_name, key_params);
+ const KeyParams& key_params,
+ time_t certificate_lifetime) {
+ return OpenSSLIdentity::Generate(common_name, key_params,
hbos 2016/02/12 11:40:12 I think DCHECKing that |certificate_lifetime| is n
torbjorng (webrtc) 2016/02/12 12:58:00 Which means test code cannot generate an expired c
+ certificate_lifetime);
}
SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) {

Powered by Google App Engine
This is Rietveld 408576698