diff options
author | Ben Laurie <ben@openssl.org> | 1999-02-21 21:58:59 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-02-21 21:58:59 +0000 |
commit | 60e31c3a4bbdbdb4259eaa3c48639f3e3915f380 (patch) | |
tree | 1cd83e30167ca83bdca1282101d9119af64cc01d /apps/s_server.c | |
parent | a040ea8251cbbda301b140693e14c5d82ca83880 (diff) | |
download | openssl-60e31c3a4bbdbdb4259eaa3c48639f3e3915f380.tar.gz |
More stuff for new TLS ciphersuites.
Diffstat (limited to 'apps/s_server.c')
-rw-r--r-- | apps/s_server.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index c0546f6f9b..35b9718b63 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -75,7 +75,7 @@ #include "s_apps.h" #ifndef NOPROTO -static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export); +static RSA MS_CALLBACK *tmp_rsa_cb(SSL *s, int export,int keylength); static int sv_body(char *hostname, int s); static int www_body(char *hostname, int s); static void close_accept_socket(void ); @@ -1211,9 +1211,10 @@ err: return(ret); } -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; @@ -1221,11 +1222,11 @@ int export; { if (!s_quiet) { - 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 if (!s_quiet) { |