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

Unified Diff: net/base/x509_certificate.h

Issue 7384002: Added CreateOriginBound method to x509_certificate.h. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed that indentation error that keeps popping up. Created 9 years, 4 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
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/base/x509_certificate_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate.h
diff --git a/net/base/x509_certificate.h b/net/base/x509_certificate.h
index 4c8dd01a99e7cb5dd6da227f5fd51b7f1f13f176..8589e925023386c57fc6d04c2c20641af03e938d 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -187,6 +187,18 @@ class NET_EXPORT X509Certificate
uint32 serial_number,
base::TimeDelta valid_duration);
+ // Create an origin bound certificate containing the public key in |key|.
+ // Web origin, serial number and validity period are given as
+ // parameters. The certificate is signed by the private key in |key|.
+ // The hashing algorithm for the signature is SHA-1.
+ //
+ // See Internet Draft draft-balfanz-tls-obc-00 for more details:
+ // http://balfanz.github.com/tls-obc-spec/draft-balfanz-tls-obc-00.html
+ static X509Certificate* CreateOriginBound(crypto::RSAPrivateKey* key,
+ const std::string& origin,
+ uint32 serial_number,
+ base::TimeDelta valid_duration);
+
// Appends a representation of this object to the given pickle.
void Persist(Pickle* pickle);
« no previous file with comments | « net/base/origin_bound_cert_service.cc ('k') | net/base/x509_certificate_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698