Fix SSL state transitions.

Submitted by: Nagendra Modadugu
This commit is contained in:
Bodo Möller
2008-09-14 14:02:01 +00:00
parent 669b912dea
commit 200d00c854
3 changed files with 10 additions and 6 deletions

View File

@@ -1172,13 +1172,13 @@ int ssl3_send_server_hello(SSL *s)
*(d++)=SSL3_MT_SERVER_HELLO;
l2n3(l,d);
s->state=SSL3_ST_CW_CLNT_HELLO_B;
s->state=SSL3_ST_SW_CLNT_HELLO_B;
/* number of bytes to write */
s->init_num=p-buf;
s->init_off=0;
}
/* SSL3_ST_CW_CLNT_HELLO_B */
/* SSL3_ST_SW_CLNT_HELLO_B */
return(ssl3_do_write(s,SSL3_RT_HANDSHAKE));
}
@@ -1202,7 +1202,7 @@ int ssl3_send_server_done(SSL *s)
s->init_off=0;
}
/* SSL3_ST_CW_CLNT_HELLO_B */
/* SSL3_ST_SW_SRVR_DONE_B */
return(ssl3_do_write(s,SSL3_RT_HANDSHAKE));
}