New Configure option no-<cipher> (rsa, idea, rc5, ...).
This commit is contained in:
@@ -67,9 +67,11 @@ static SSL_METHOD *ssl23_get_server_method(int ver);
|
||||
int ssl23_get_client_hello(SSL *s);
|
||||
static SSL_METHOD *ssl23_get_server_method(int ver)
|
||||
{
|
||||
#ifndef NO_RSA
|
||||
if (ver == SSL2_VERSION)
|
||||
return(SSLv2_server_method());
|
||||
else if (ver == SSL3_VERSION)
|
||||
#endif
|
||||
if (ver == SSL3_VERSION)
|
||||
return(SSLv3_server_method());
|
||||
else if (ver == TLS1_VERSION)
|
||||
return(TLSv1_server_method());
|
||||
@@ -404,6 +406,9 @@ next_bit:
|
||||
|
||||
if (type == 1)
|
||||
{
|
||||
#ifdef NO_RSA
|
||||
goto err;
|
||||
#else
|
||||
/* we are talking sslv2 */
|
||||
/* we need to clean up the SSLv3/TLSv1 setup and put in the
|
||||
* sslv2 stuff. */
|
||||
@@ -442,6 +447,7 @@ next_bit:
|
||||
|
||||
s->method=SSLv2_server_method();
|
||||
s->handshake_func=s->method->ssl_accept;
|
||||
#endif
|
||||
}
|
||||
|
||||
if ((type == 2) || (type == 3))
|
||||
|
Reference in New Issue
Block a user