summaryrefslogtreecommitdiffstats
path: root/base/crypto
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-17 21:13:16 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-17 21:13:16 +0000
commit56f2ec39bd6be763b9493eff17bf4a359b97be68 (patch)
tree0ca82de141503d2f2ff749e7621b3e72e04582c2 /base/crypto
parent0e043d1a747de34d49b525282929038bb92048dd (diff)
downloadchromium_src-56f2ec39bd6be763b9493eff17bf4a359b97be68.zip
chromium_src-56f2ec39bd6be763b9493eff17bf4a359b97be68.tar.gz
chromium_src-56f2ec39bd6be763b9493eff17bf4a359b97be68.tar.bz2
Create self signed X509 certificate
In order to run a SSL server certificate and private key is needed. In the case of Chromoting the first step is to use self signed cert. This change allows to issue self signed cert. This is only implemented in NSS. BUG=None TEST=net_unittests Review URL: http://codereview.chromium.org/5754001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@69573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/crypto')
-rw-r--r--base/crypto/rsa_private_key.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/base/crypto/rsa_private_key.h b/base/crypto/rsa_private_key.h
index ecec015..879c1f4 100644
--- a/base/crypto/rsa_private_key.h
+++ b/base/crypto/rsa_private_key.h
@@ -208,6 +208,7 @@ class RSAPrivateKey {
EVP_PKEY* key() { return key_; }
#elif defined(USE_NSS)
SECKEYPrivateKeyStr* key() { return key_; }
+ SECKEYPublicKeyStr* public_key() { return public_key_; }
#elif defined(OS_WIN)
HCRYPTPROV provider() { return provider_; }
HCRYPTKEY key() { return key_; }