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

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: Cleaned up the Threadsafe OID singleton wrapper class. 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 | « no previous file | net/base/x509_certificate_nss.cc » ('j') | net/base/x509_certificate_nss.cc » ('J')
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..2f1b5fbad3201ffb1aee071bdd5145a0c1c953bc 100644
--- a/net/base/x509_certificate.h
+++ b/net/base/x509_certificate.h
@@ -187,6 +187,24 @@ class NET_EXPORT X509Certificate
uint32 serial_number,
base::TimeDelta valid_duration);
+ // Create an origin bound certificate containing the public key in |key|.
+ // Subject, web origin, serial number and validity period are given as
wtc 2011/08/19 18:18:08 Remove "Subject, " from this line. Remove lines 1
mdietz 2011/08/22 20:09:00 Done.
+ // parameters. The certificate is signed by the private key in |key|.
+ // The hashing algorithm for the signature is SHA-1.
+ //
+ // |subject| is a distinguished name defined in RFC4514.
+ //
+ // An example:
+ // CN=Michael Wong,O=FooBar Corporation,DC=foobar,DC=com
+ //
+ // 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& subject,
+ 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 | « no previous file | net/base/x509_certificate_nss.cc » ('j') | net/base/x509_certificate_nss.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698