diff options
author | Matt Caswell <matt@openssl.org> | 2015-01-30 20:29:41 +0300 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2015-03-26 16:53:07 +0300 |
commit | 258f8721a5d2c3ec5fd433e89112885139be1db3 (patch) | |
tree | e43ce47ce54ae67d4a50f28306fdde89f5f5241d /ssl/s3_pkt.c | |
parent | ab97b2cd4301074fd88fd2f13b8c79342593dae4 (diff) |
Encapsulate s->s3->rrec
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/s3_pkt.c')
-rw-r--r-- | ssl/s3_pkt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssl/s3_pkt.c b/ssl/s3_pkt.c index eb25f34ad4..b86ee1e5cf 100644 --- a/ssl/s3_pkt.c +++ b/ssl/s3_pkt.c @@ -316,7 +316,7 @@ static int ssl3_get_record(SSL *s) size_t extra; unsigned empty_record_count = 0; - rr = &(s->s3->rrec); + rr = RECORD_LAYER_get_rrec(&s->rlayer); sess = s->session; if (s->options & SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER) @@ -600,7 +600,7 @@ int ssl3_do_uncompress(SSL *ssl) int i; SSL3_RECORD *rr; - rr = &(ssl->s3->rrec); + rr = RECORD_LAYER_get_rrec(&ssl->rlayer); i = COMP_expand_block(ssl->expand, rr->comp, SSL3_RT_MAX_PLAIN_LENGTH, rr->data, (int)rr->length); @@ -1235,7 +1235,7 @@ int ssl3_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) * s->s3->rrec.off, - offset into 'data' for next read * s->s3->rrec.length, - number of bytes. */ - rr = &(s->s3->rrec); + rr = RECORD_LAYER_get_rrec(&s->rlayer); /* get new packet if necessary */ if ((rr->length == 0) || (s->rstate == SSL_ST_READ_BODY)) { |