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

Unified Diff: webrtc/base/sslidentity.cc

Issue 1701953002: Move SSLIdentity Generate() implementations from .h to .cc file. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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
« no previous file with comments | « webrtc/base/sslidentity.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/sslidentity.cc
diff --git a/webrtc/base/sslidentity.cc b/webrtc/base/sslidentity.cc
index 536e3aa7dc46726273cc16d598296a6ec8172d74..0d7d30e5bd2d139e1bb082f0a3c5ff759f35324e 100644
--- a/webrtc/base/sslidentity.cc
+++ b/webrtc/base/sslidentity.cc
@@ -165,6 +165,18 @@ SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
certificate_lifetime);
}
+SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
tommi 2016/02/16 12:00:17 fyi: typically we tag static methods in the .cc fi
torbjorng (webrtc) 2016/02/16 12:22:46 Done.
+ const KeyParams& key_params) {
+ return OpenSSLIdentity::Generate(common_name, key_params,
tommi 2016/02/16 12:00:17 why call into OpenSSLIdentity here and not the ab
torbjorng (webrtc) 2016/02/16 12:22:46 Mainly to shorten the call chains, but I think the
+ kDefaultCertificateLifetime);
+}
+
+SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
+ KeyType key_type) {
+ return OpenSSLIdentity::Generate(common_name, KeyParams(key_type),
+ kDefaultCertificateLifetime);
+}
hbos 2016/02/16 12:02:18 Suggestion: These should call the three-paramed SS
torbjorng (webrtc) 2016/02/16 12:22:46 Please see above reply.
+
SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) {
return OpenSSLIdentity::GenerateForTest(params);
}
« no previous file with comments | « webrtc/base/sslidentity.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698