summaryrefslogtreecommitdiffstats
path: root/net/socket
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 05:43:15 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-29 05:43:15 +0000
commit515face447d10a3095341cc390c8c0274ca62381 (patch)
tree831e1f70f53021963c30e3e22e557e2c9ea9bf87 /net/socket
parentfbda95d8bff725d3433047fbef0f3ff068d2dd9f (diff)
downloadchromium_src-515face447d10a3095341cc390c8c0274ca62381.zip
chromium_src-515face447d10a3095341cc390c8c0274ca62381.tar.gz
chromium_src-515face447d10a3095341cc390c8c0274ca62381.tar.bz2
Remove support for RSA Origin Bound Certificates.
Generating them is too slow & power hungry, especially on mobile devices. BUG=none TEST=unittests Review URL: http://codereview.chromium.org/9372118 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124124 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket')
-rw-r--r--net/socket/ssl_client_socket_nss.cc19
1 files changed, 0 insertions, 19 deletions
diff --git a/net/socket/ssl_client_socket_nss.cc b/net/socket/ssl_client_socket_nss.cc
index fd32158..8188d66 100644
--- a/net/socket/ssl_client_socket_nss.cc
+++ b/net/socket/ssl_client_socket_nss.cc
@@ -1558,25 +1558,6 @@ int SSLClientSocketNSS::ImportOBCertAndKey(CERTCertificate** cert,
// Set the private key.
switch (ob_cert_type_) {
- case CLIENT_CERT_RSA_SIGN: {
- SECItem der_private_key_info;
- der_private_key_info.data = (unsigned char*)ob_private_key_.data();
- der_private_key_info.len = ob_private_key_.size();
- const unsigned int key_usage = KU_DIGITAL_SIGNATURE;
- crypto::ScopedPK11Slot slot(PK11_GetInternalSlot());
- SECStatus rv = PK11_ImportDERPrivateKeyInfoAndReturnKey(
- slot.get(), &der_private_key_info, NULL, NULL, PR_FALSE, PR_FALSE,
- key_usage, key, NULL);
-
- if (rv != SECSuccess) {
- int error = MapNSSError(PORT_GetError());
- CERT_DestroyCertificate(*cert);
- *cert = NULL;
- return error;
- }
- break;
- }
-
case CLIENT_CERT_ECDSA_SIGN: {
SECKEYPublicKey* public_key = NULL;
if (!crypto::ECPrivateKey::ImportFromEncryptedPrivateKeyInfo(