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

Unified Diff: webrtc/base/sslidentity.h

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.h
diff --git a/webrtc/base/sslidentity.h b/webrtc/base/sslidentity.h
index be0f3aa1076c031c99a341e16ff97aaad0bce42c..77c9e186c1cb452c0accc4c9d4fb7cafa4ab8603 100644
--- a/webrtc/base/sslidentity.h
+++ b/webrtc/base/sslidentity.h
@@ -127,10 +127,11 @@ static const int kRsaMinModSize = 1024;
static const int kRsaMaxModSize = 8192;
// Certificate default validity lifetime.
-static const int kDefaultCertificateLifetime = 60 * 60 * 24 * 30; // 30 days
+static const int kDefaultCertificateLifetimeInSeconds =
+ 60 * 60 * 24 * 30; // 30 days
// Certificate validity window.
// This is to compensate for slightly incorrect system clocks.
-static const int kCertificateWindow = -60 * 60 * 24;
+static const int kCertificateWindowInSeconds = -60 * 60 * 24;
struct RSAParams {
unsigned int mod_size;
@@ -198,9 +199,9 @@ class SSLIdentity {
// should be a non-negative number.
// Returns NULL on failure.
// Caller is responsible for freeing the returned object.
- static SSLIdentity* Generate(const std::string& common_name,
- const KeyParams& key_param,
- time_t certificate_lifetime);
+ static SSLIdentity* GenerateWithExpiration(const std::string& common_name,
+ const KeyParams& key_param,
+ time_t certificate_lifetime);
static SSLIdentity* Generate(const std::string& common_name,
const KeyParams& key_param);
static SSLIdentity* Generate(const std::string& common_name,

Powered by Google App Engine
This is Rietveld 408576698