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

Unified Diff: net/cert/x509_util_openssl.cc

Issue 27832002: Sign self-signed certs with SHA256. (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 2 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
===================================================================
--- net/cert/x509_util_openssl.cc (revision 228925)
+++ net/cert/x509_util_openssl.cc (working copy)
@@ -48,8 +48,9 @@
return true;
}
-bool CreateDomainBoundCertEC(
+bool CreateDomainBoundCertECInternal(
crypto::ECPrivateKey* key,
+ crypto::HMAC::HashAlgorithm alg,
const std::string& domain,
uint32 serial_number,
base::Time not_valid_before,
@@ -59,12 +60,13 @@
return false;
}
-bool CreateSelfSignedCert(crypto::RSAPrivateKey* key,
- const std::string& common_name,
- uint32 serial_number,
- base::Time not_valid_before,
- base::Time not_valid_after,
- std::string* der_encoded) {
+bool CreateSelfSignedCertInternal(crypto::RSAPrivateKey* key,
+ crypto::HMAC::HashAlgorithm alg,
+ const std::string& common_name,
+ uint32 serial_number,
+ base::Time not_valid_before,
+ base::Time not_valid_after,
+ std::string* der_encoded) {
NOTIMPLEMENTED();
return false;
}

Powered by Google App Engine
This is Rietveld 408576698