summaryrefslogtreecommitdiffstats
path: root/ssl/ssltest.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-02-21 21:58:59 +0000
committerBen Laurie <ben@openssl.org>1999-02-21 21:58:59 +0000
commit60e31c3a4bbdbdb4259eaa3c48639f3e3915f380 (patch)
tree1cd83e30167ca83bdca1282101d9119af64cc01d /ssl/ssltest.c
parenta040ea8251cbbda301b140693e14c5d82ca83880 (diff)
More stuff for new TLS ciphersuites.
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r--ssl/ssltest.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/ssl/ssltest.c b/ssl/ssltest.c
index 4662770e38..720abfa01e 100644
--- a/ssl/ssltest.c
+++ b/ssl/ssltest.c
@@ -75,7 +75,7 @@
#ifndef NOPROTO
int MS_CALLBACK verify_callback(int ok, X509_STORE_CTX *ctx);
-static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export);
+static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export,int keylength);
#ifndef NO_DSA
static DH *get_dh512(void);
#endif
@@ -730,18 +730,19 @@ static DH *get_dh512()
}
#endif
-static RSA MS_CALLBACK *tmp_rsa_cb(s,export)
+static RSA MS_CALLBACK *tmp_rsa_cb(s,export,keylength)
SSL *s;
int export;
+int keylength;
{
static RSA *rsa_tmp=NULL;
if (rsa_tmp == NULL)
{
- BIO_printf(bio_err,"Generating temp (512 bit) RSA key...");
+ BIO_printf(bio_err,"Generating temp (%d bit) RSA key...",keylength);
BIO_flush(bio_err);
#ifndef NO_RSA
- rsa_tmp=RSA_generate_key(512,RSA_F4,NULL,NULL);
+ rsa_tmp=RSA_generate_key(keylength,RSA_F4,NULL,NULL);
#endif
BIO_printf(bio_err,"\n");
BIO_flush(bio_err);