diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-21 22:58:59 +0100 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-21 22:58:59 +0100 |
commit | 60e31c3a4bbdbdb4259eaa3c48639f3e3915f380 (patch) | |
tree | 1cd83e30167ca83bdca1282101d9119af64cc01d /ssl/ssltest.c | |
parent | Undo a couple of kludges. (diff) | |
download | openssl-60e31c3a4bbdbdb4259eaa3c48639f3e3915f380.tar.xz openssl-60e31c3a4bbdbdb4259eaa3c48639f3e3915f380.zip |
More stuff for new TLS ciphersuites.
Diffstat (limited to 'ssl/ssltest.c')
-rw-r--r-- | ssl/ssltest.c | 9 |
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); |