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

Unified Diff: net/base/x509_util.h

Issue 8537025: Allow signing EC certs and creating EC origin-bound certs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/base/x509_util.h
diff --git a/net/base/x509_util.h b/net/base/x509_util.h
index d110c939f508a1d97078379dfe8397e124a4b411..1d8c933d93583d82ccecd340d5b9e5c77443d789 100644
--- a/net/base/x509_util.h
+++ b/net/base/x509_util.h
@@ -12,6 +12,7 @@
#include "net/base/net_export.h"
namespace crypto {
+class ECPrivateKey;
class RSAPrivateKey;
}
@@ -26,11 +27,16 @@ namespace x509_util {
//
// See Internet Draft draft-balfanz-tls-obc-00 for more details:
// http://tools.ietf.org/html/draft-balfanz-tls-obc-00
-bool NET_EXPORT_PRIVATE CreateOriginBoundCert(crypto::RSAPrivateKey* key,
- const std::string& origin,
- uint32 serial_number,
- base::TimeDelta valid_duration,
- std::string* der_cert);
+bool NET_EXPORT_PRIVATE CreateOriginBoundCertRSA(crypto::RSAPrivateKey* key,
+ const std::string& origin,
+ uint32 serial_number,
+ base::TimeDelta valid_duration,
+ std::string* der_cert);
+bool NET_EXPORT_PRIVATE CreateOriginBoundCertEC(crypto::ECPrivateKey* key,
+ const std::string& origin,
+ uint32 serial_number,
+ base::TimeDelta valid_duration,
+ std::string* der_cert);
} // namespace x509_util

Powered by Google App Engine
This is Rietveld 408576698