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); |