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

Unified Diff: net/base/x509_certificate_mac.cc

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/x509_certificate.h ('k') | net/base/x509_certificate_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/x509_certificate_mac.cc
diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc
index 9b39de677f25526261e8fd898362246c0d4d75c9..014d51acbcb1d6b27a9129c4b66713d168abc8e3 100644
--- a/net/base/x509_certificate_mac.cc
+++ b/net/base/x509_certificate_mac.cc
@@ -695,6 +695,25 @@ X509Certificate* X509Certificate::CreateSelfSigned(
return CreateFromHandle(scoped_cert, X509Certificate::OSCertHandles());
}
+// static
+X509Certificate* X509Certificate::CreateOriginBound(
+ crypto::RSAPrivateKey* key,
+ const std::string& origin,
+ uint32 serial_number,
+ base::TimeDelta valid_duration) {
+ // TODO(wtc): this cannot be implemented by creating a CE_DataAndType for
+ // the origin-bound extension and adding it to certReq.extensions because
+ // it is not one of the supported extensions in the CE_DataType enum type.
+ // Using the DT_Other enum constant does not work.
+ //
+ // The relevant Apple headers are:
+ // - CSSM_APPLE_TP_CERT_REQUEST is defined in cssmapple.h.
+ // - CE_DataAndType, CE_DataType, and CE_Data are defined in
+ // certextensions.h.
+ NOTIMPLEMENTED();
+ return NULL;
+}
+
void X509Certificate::GetSubjectAltName(
std::vector<std::string>* dns_names,
std::vector<std::string>* ip_addrs) const {
« no previous file with comments | « net/base/x509_certificate.h ('k') | net/base/x509_certificate_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698