aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/s23_srvr.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>1999-04-27 03:19:12 +0000
committerUlf Möller <ulf@openssl.org>1999-04-27 03:19:12 +0000
commit79df9d62721467927c81f1fa91568340e873ee9c (patch)
tree09b9c72ecf0604bc994b97e0501e561311a1559b /ssl/s23_srvr.c
parent281c52c0548e4410e225464a30a82aac6d9ea70b (diff)
downloadopenssl-79df9d62721467927c81f1fa91568340e873ee9c.tar.gz
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'ssl/s23_srvr.c')
-rw-r--r--ssl/s23_srvr.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ssl/s23_srvr.c b/ssl/s23_srvr.c
index 9825367062..e74e019f1d 100644
--- a/ssl/s23_srvr.c
+++ b/ssl/s23_srvr.c
@@ -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))