diff options
author | David Benjamin <davidben@chromium.org> | 2014-07-13 00:31:12 +0400 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2014-07-15 01:43:20 +0400 |
commit | 51b1f7427b6e153675ae4bcb75f3f5a6b44648f4 (patch) | |
tree | 770927aa4d122a49d262ac8dfa49cfeb3a0ef8da /ssl/d1_both.c | |
parent | 9c651c9ef6d0ec8a4fa953efcdd85e3130015fe6 (diff) |
Make init_msg a uint8_t*.
It's current a void* and gets explicitly cast everywhere. Make it a uint8_t and
only add the casts when converting it come init_buf, which internally stores a
char*.
Change-Id: I28bed129e46ed37ee1ce378d5c3bd0738fc1177f
Reviewed-on: https://boringssl-review.googlesource.com/1163
Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 4e854a20..570514b3 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -439,7 +439,7 @@ long dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok) goto f_err; } *ok=1; - s->init_msg = s->init_buf->data + DTLS1_HM_HEADER_LENGTH; + s->init_msg = (uint8_t*)s->init_buf->data + DTLS1_HM_HEADER_LENGTH; s->init_num = (int)s->s3->tmp.message_size; return s->init_num; } @@ -481,7 +481,7 @@ again: if (!s->d1->listen) s->d1->handshake_read_seq++; - s->init_msg = s->init_buf->data + DTLS1_HM_HEADER_LENGTH; + s->init_msg = (uint8_t*)s->init_buf->data + DTLS1_HM_HEADER_LENGTH; return s->init_num; f_err: |