diff options
author | Matt Caswell <matt@openssl.org> | 2015-02-02 13:43:38 +0000 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-26 15:01:59 +0000 |
commit | bbcd6d7fe263361f18060c40cac676d6a6193ead (patch) | |
tree | 75f7c18344ebb9d7ffec1cf7804fbe01b444222d /ssl/s23_clnt.c | |
parent | f161995e0e1a77415354b1690fb92ae3f1480547 (diff) |
Provide RECORD_LAYER_set_data function
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/s23_clnt.c')
-rw-r--r-- | ssl/s23_clnt.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/ssl/s23_clnt.c b/ssl/s23_clnt.c index abefcaa0ef..0bc5946666 100644 --- a/ssl/s23_clnt.c +++ b/ssl/s23_clnt.c @@ -573,13 +573,8 @@ static int ssl23_get_server_hello(SSL *s) /* * put the 7 bytes we have read into the input buffer for SSLv3 */ - s->rstate = SSL_ST_READ_HEADER; - s->packet_length = n; - if (!SSL3_BUFFER_is_initialised(RECORD_LAYER_get_rbuf(&s->rlayer))) - if (!ssl3_setup_read_buffer(s)) - goto err; - s->packet = SSL3_BUFFER_get_buf(RECORD_LAYER_get_rbuf(&s->rlayer)); - SSL3_BUFFER_set_data(RECORD_LAYER_get_rbuf(&s->rlayer), buf, n); + if(!RECORD_LAYER_set_data(&s->rlayer, buf, n)) + goto err; s->handshake_func = s->method->ssl_connect; } else { |