aboutsummaryrefslogtreecommitdiff
path: root/ssl/ssl_ciph.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2017-02-10 04:23:53 +0000
committerDr. Stephen Henson <steve@openssl.org>2017-02-10 20:08:35 +0000
commitd0ff28f8a23f98876a979c932fe1cb016738b0c4 (patch)
tree293974577fdacad6e067eca5d8ec0d27769a979b /ssl/ssl_ciph.c
parent8fd19b20beca97a2ef804058f099cf54f12f7614 (diff)
downloadopenssl-d0ff28f8a23f98876a979c932fe1cb016738b0c4.zip
openssl-d0ff28f8a23f98876a979c932fe1cb016738b0c4.tar.gz
openssl-d0ff28f8a23f98876a979c932fe1cb016738b0c4.tar.bz2
Replace SSL_PKEY_RSA_ENC, SSL_PKEY_RSA_SIGN
The original intent of SSL_PKEY_RSA_SIGN and SSL_PKEY_RSA_ENC was to support two different keys for RSA signing and decrypt. However this was never implemented and we only ever set one key and the other was always NULL. Replace with single SSL_PKEY_RSA type. Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2587)
Diffstat (limited to 'ssl/ssl_ciph.c')
-rw-r--r--ssl/ssl_ciph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_ciph.c b/ssl/ssl_ciph.c
index 3149c39..d28b53d 100644
--- a/ssl/ssl_ciph.c
+++ b/ssl/ssl_ciph.c
@@ -1909,7 +1909,7 @@ int ssl_cipher_get_cert_index(const SSL_CIPHER *c)
else if (alg_a & SSL_aDSS)
return SSL_PKEY_DSA_SIGN;
else if (alg_a & SSL_aRSA)
- return SSL_PKEY_RSA_ENC;
+ return SSL_PKEY_RSA;
else if (alg_a & SSL_aGOST12)
return SSL_PKEY_GOST_EC;
else if (alg_a & SSL_aGOST01)