Fix SSL state transitions.
Submitted by: Nagendra Modadugu
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user