diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-22 21:21:09 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-22 21:21:09 +0000 |
commit | 3a50f8a87d43c111e58d6e5e0cea5a4ee3c08265 (patch) | |
tree | f3f4907bcc7087e11f7583228d1f67914d054074 /net/base/x509_certificate_mac.cc | |
parent | b7ff596d84cc3f65463e0b026a3f41402c80dd99 (diff) | |
download | chromium_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.cc | 10 |
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); |