summaryrefslogtreecommitdiffstats
path: root/net/base/x509_certificate_mac.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-22 21:21:09 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-22 21:21:09 +0000
commit3a50f8a87d43c111e58d6e5e0cea5a4ee3c08265 (patch)
treef3f4907bcc7087e11f7583228d1f67914d054074 /net/base/x509_certificate_mac.cc
parentb7ff596d84cc3f65463e0b026a3f41402c80dd99 (diff)
downloadchromium_src-3a50f8a87d43c111e58d6e5e0cea5a4ee3c08265.zip
chromium_src-3a50f8a87d43c111e58d6e5e0cea5a4ee3c08265.tar.gz
chromium_src-3a50f8a87d43c111e58d6e5e0cea5a4ee3c08265.tar.bz2
Implement X509Certificate::CreateSelfSigned on Windows
In order to run SSLServerSocketNSS on windows a self signed certificate is needed. BUG=None TEST=net_unittests --gtest_filter=X509* Review URL: http://codereview.chromium.org/6002003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69984 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/x509_certificate_mac.cc')
-rw-r--r--net/base/x509_certificate_mac.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/net/base/x509_certificate_mac.cc b/net/base/x509_certificate_mac.cc
index 2187cd3..f7c89e4 100644
--- a/net/base/x509_certificate_mac.cc
+++ b/net/base/x509_certificate_mac.cc
@@ -400,6 +400,16 @@ X509Certificate* X509Certificate::CreateFromPickle(const Pickle& pickle,
return CreateFromBytes(data, length);
}
+// static
+X509Certificate* X509Certificate::CreateSelfSigned(
+ base::RSAPrivateKey* key,
+ const std::string& subject,
+ uint32 serial_number,
+ base::TimeDelta valid_duration) {
+ // TODO(port): Implement.
+ return NULL;
+}
+
void X509Certificate::Persist(Pickle* pickle) {
CSSM_DATA cert_data;
OSStatus status = SecCertificateGetData(cert_handle_, &cert_data);