diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2017-02-10 04:23:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2017-02-10 20:08:35 +0000 |
commit | d0ff28f8a23f98876a979c932fe1cb016738b0c4 (patch) | |
tree | 293974577fdacad6e067eca5d8ec0d27769a979b /ssl/ssl_cert.c | |
parent | 8fd19b20beca97a2ef804058f099cf54f12f7614 (diff) |
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_cert.c')
-rw-r--r-- | ssl/ssl_cert.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/ssl_cert.c b/ssl/ssl_cert.c index bbb6932210..a75fb6564a 100644 --- a/ssl/ssl_cert.c +++ b/ssl/ssl_cert.c @@ -63,7 +63,7 @@ CERT *ssl_cert_new(void) return NULL; } - ret->key = &(ret->pkeys[SSL_PKEY_RSA_ENC]); + ret->key = &(ret->pkeys[SSL_PKEY_RSA]); ret->references = 1; ret->sec_cb = ssl_security_default_callback; ret->sec_level = OPENSSL_TLS_SECURITY_LEVEL; |