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

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: Changed ObCertOIDWrapper from a Singleton to a LeakySingleton to avoid a runtime error. 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
Index: net/base/x509_certificate_mac.cc
diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc
index ef69748a4a5295244336aed0fe500318e31e8127..637b9298f3392b9e08d965980274b894c05db548 100644
--- a/net/base/x509_certificate_mac.cc
+++ b/net/base/x509_certificate_mac.cc
@@ -688,6 +688,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 {

Powered by Google App Engine
This is Rietveld 408576698