From f66bd72dc2aa3b71094e176ffa247466847c505a Mon Sep 17 00:00:00 2001 From: bodo Date: Sun, 30 Jan 2000 02:22:47 +0000 Subject: Make DSA_generate_parameters, and fix a couple of bug (including another problem in the s3_srvr.c state machine). --- ssl/s3_srvr.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'ssl') diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index d6158dbc6..ce68732e6 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -963,6 +963,14 @@ static int ssl3_send_server_key_exchange(SSL *s) SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,SSL_R_MISSING_TMP_DH_KEY); goto f_err; } + + if (s->s3->tmp.dh != NULL) + { + DH_free(dh); + SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE, SSL_R_INTERNAL_ERROR); + goto err; + } + if ((dh=DHparams_dup(dhp)) == NULL) { SSLerr(SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE,ERR_R_DH_LIB); @@ -1109,7 +1117,7 @@ static int ssl3_send_server_key_exchange(SSL *s) s->init_off=0; } - /* SSL3_ST_SW_KEY_EXCH_B */ + s->state = SSL3_ST_SW_KEY_EXCH_B; return(ssl3_do_write(s,SSL3_RT_HANDSHAKE)); f_err: ssl3_send_alert(s,SSL3_AL_FATAL,al); -- cgit v1.2.1