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

Unified Diff: webrtc/base/sslidentity.cc

Issue 1844313002: Rename some things SSL for style guide adherence (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 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 14dfeb79146abc6ebb9f6290bbbffc2491ebfcfe..5fa8bbf6b432051f6984c8aa30918e50bfac09c6 100644
--- a/webrtc/base/sslidentity.cc
+++ b/webrtc/base/sslidentity.cc
@@ -156,25 +156,25 @@ SSLCertificate* SSLCertificate::FromPEMString(const std::string& pem_string) {
}
// static
-SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
- const KeyParams& key_params,
- time_t certificate_lifetime) {
- return OpenSSLIdentity::Generate(common_name, key_params,
- certificate_lifetime);
+SSLIdentity* SSLIdentity::GenerateWithExpiration(const std::string& common_name,
+ const KeyParams& key_params,
+ time_t certificate_lifetime) {
+ return OpenSSLIdentity::GenerateWithExpiration(common_name, key_params,
+ certificate_lifetime);
}
// static
SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
const KeyParams& key_params) {
- return OpenSSLIdentity::Generate(common_name, key_params,
- kDefaultCertificateLifetime);
+ return OpenSSLIdentity::GenerateWithExpiration(
+ common_name, key_params, kDefaultCertificateLifetimeInSeconds);
}
// static
SSLIdentity* SSLIdentity::Generate(const std::string& common_name,
KeyType key_type) {
- return OpenSSLIdentity::Generate(common_name, KeyParams(key_type),
- kDefaultCertificateLifetime);
+ return OpenSSLIdentity::GenerateWithExpiration(
+ common_name, KeyParams(key_type), kDefaultCertificateLifetimeInSeconds);
}
SSLIdentity* SSLIdentity::GenerateForTest(const SSLIdentityParams& params) {

Powered by Google App Engine
This is Rietveld 408576698