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

Unified Diff: net/cert/x509_util_openssl.cc

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 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: net/cert/x509_util_openssl.cc
diff --git a/net/cert/x509_util_openssl.cc b/net/cert/x509_util_openssl.cc
index c87d5538eedb3319a48ec69970f62a0321792ebd..d5873ca735cf62e8de5103a328a4a23067fa164f 100644
--- a/net/cert/x509_util_openssl.cc
+++ b/net/cert/x509_util_openssl.cc
@@ -215,8 +215,8 @@ bool IsSupportedValidityRange(base::Time not_valid_before,
//
// Note: This ignores leap seconds, but should be enough in practice.
//
- const int64 kDaysFromYear0001ToUnixEpoch = 719162;
- const int64 kDaysFromUnixEpochToYear10000 = 2932896 + 1;
+ const int64_t kDaysFromYear0001ToUnixEpoch = 719162;
+ const int64_t kDaysFromUnixEpochToYear10000 = 2932896 + 1;
const base::Time kEpoch = base::Time::UnixEpoch();
const base::Time kYear0001 = kEpoch -
base::TimeDelta::FromDays(kDaysFromYear0001ToUnixEpoch);
@@ -233,7 +233,7 @@ bool IsSupportedValidityRange(base::Time not_valid_before,
bool CreateSelfSignedCert(crypto::RSAPrivateKey* key,
DigestAlgorithm alg,
const std::string& common_name,
- uint32 serial_number,
+ uint32_t serial_number,
base::Time not_valid_before,
base::Time not_valid_after,
std::string* der_encoded) {

Powered by Google App Engine
This is Rietveld 408576698