diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-04-26 17:43:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-04-26 17:43:53 +0000 |
commit | 4e321ffafff3a1f31bbbfdcf1b17c0ecbde2121f (patch) | |
tree | 7d73e26943039afac7437af0bd9d49185468d80c /ssl/d1_both.c | |
parent | 6ededa42db8b4c222fa95198d43c1ad57c19b411 (diff) |
Fixes for signed/unsigned warnings and shadows.
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r-- | ssl/d1_both.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c index 68908810bd..fb98bf49d0 100644 --- a/ssl/d1_both.c +++ b/ssl/d1_both.c @@ -262,7 +262,7 @@ int dtls1_do_write(SSL *s, int type) dtls1_fix_message_header(s, frag_off, len - DTLS1_HM_HEADER_LENGTH); - dtls1_write_message_header(s, &s->init_buf->data[s->init_off]); + dtls1_write_message_header(s, (unsigned char *)&s->init_buf->data[s->init_off]); OPENSSL_assert(len >= DTLS1_HM_HEADER_LENGTH); } @@ -472,7 +472,7 @@ dtls1_process_handshake_fragment(SSL *s, int frag_len) { unsigned char *p; - p = s->init_buf->data; + p = (unsigned char *)s->init_buf->data; ssl3_finish_mac(s, &p[s->init_num - frag_len], frag_len); } @@ -492,7 +492,7 @@ dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st *msg_hdr, int *ok) goto err; } - p = s->init_buf->data; + p = (unsigned char *)s->init_buf->data; /* read the body of the fragment (header has already been read */ if ( msg_hdr->frag_len > 0) @@ -666,7 +666,7 @@ dtls1_get_message_fragment(SSL *s, int st1, int stn, long max, int *ok) s->state=stn; /* next state (stn) */ - p = s->init_buf->data; + p = (unsigned char *)s->init_buf->data; if ( frag_len > 0) { |