summaryrefslogtreecommitdiffstats
path: root/ssl/ssl_cert.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2014-11-27 11:06:43 +0000
committerMatt Caswell <matt@openssl.org>2014-11-27 20:50:44 +0000
commitfc3968a25ce0c16cab8730ec0d68a59856158029 (patch)
tree36751d348f04bdd0bb00af8413874c00de703075 /ssl/ssl_cert.c
parent5e31a40f47c6bfd09c718d2af42ba8d8fe6bb932 (diff)
Remove redundant checks in ssl_cert_dup. This was causing spurious error messages when using GOST
PR#3613 Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/ssl_cert.c')
-rw-r--r--ssl/ssl_cert.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c
index 505a510bff..6264fe93c7 100644
--- a/ssl/ssl_cert.c
+++ b/ssl/ssl_cert.c
@@ -294,35 +294,6 @@ CERT *ssl_cert_dup(CERT *cert)
rpk->privatekey = cpk->privatekey;
CRYPTO_add(&cpk->privatekey->references, 1,
CRYPTO_LOCK_EVP_PKEY);
-
- switch(i)
- {
- /* If there was anything special to do for
- * certain types of keys, we'd do it here.
- * (Nothing at the moment, I think.) */
-
- case SSL_PKEY_RSA_ENC:
- case SSL_PKEY_RSA_SIGN:
- /* We have an RSA key. */
- break;
-
- case SSL_PKEY_DSA_SIGN:
- /* We have a DSA key. */
- break;
-
- case SSL_PKEY_DH_RSA:
- case SSL_PKEY_DH_DSA:
- /* We have a DH key. */
- break;
-
- case SSL_PKEY_ECC:
- /* We have an ECC key */
- break;
-
- default:
- /* Can't happen. */
- SSLerr(SSL_F_SSL_CERT_DUP, SSL_R_LIBRARY_BUG);
- }
}
if (cpk->chain)