aboutsummaryrefslogtreecommitdiffstats
path: root/ssl/ssltest.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/ssltest.c
parent281c52c0548e4410e225464a30a82aac6d9ea70b (diff)
downloadopenssl-79df9d62721467927c81f1fa91568340e873ee9c.tar.gz
New Configure option no-<cipher> (rsa, idea, rc5, ...).
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 1506a28383..54f2458345 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -70,12 +70,18 @@
#include "../crypto/bio/bss_file.c"
#endif
+#if defined(NO_RSA) && !defined(NO_SSL2)
+#define NO_SSL2
+#endif
+
#define TEST_SERVER_CERT "../apps/server.pem"
#define TEST_CLIENT_CERT "../apps/client.pem"
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
+#ifndef NO_RSA
static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export,int keylength);
-#ifndef NO_DSA
+#endif
+#ifndef NO_DH
static DH *get_dh512(void);
#endif
BIO *bio_err=NULL;
@@ -710,6 +716,7 @@ static DH *get_dh512(void)
}
#endif
+#ifndef NO_RSA
static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export, int keylength)
{
static RSA *rsa_tmp=NULL;
@@ -718,13 +725,10 @@ static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export, int keylength)
{
BIO_printf(bio_err,"Generating temp (%d bit) RSA key...",keylength);
BIO_flush(bio_err);
-#ifndef NO_RSA
rsa_tmp=RSA_generate_key(keylength,RSA_F4,NULL,NULL);
-#endif
BIO_printf(bio_err,"\n");
BIO_flush(bio_err);
}
return(rsa_tmp);
}
-
-
+#endif