Lines Matching refs:s3
163 sender,slen,s->s3->tmp.finish_md); in ssl3_send_finished()
164 s->s3->tmp.finish_md_len = i; in ssl3_send_finished()
165 memcpy(p, s->s3->tmp.finish_md, i); in ssl3_send_finished()
174 memcpy(s->s3->previous_client_finished, in ssl3_send_finished()
175 s->s3->tmp.finish_md, i); in ssl3_send_finished()
176 s->s3->previous_client_finished_len=i; in ssl3_send_finished()
181 memcpy(s->s3->previous_server_finished, in ssl3_send_finished()
182 s->s3->tmp.finish_md, i); in ssl3_send_finished()
183 s->s3->previous_server_finished_len=i; in ssl3_send_finished()
223 s->s3->tmp.peer_finish_md_len = s->method->ssl3_enc->final_finish_mac(s, in ssl3_take_mac()
224 sender,slen,s->s3->tmp.peer_finish_md); in ssl3_take_mac()
250 if (!s->s3->change_cipher_spec) in ssl3_get_finished()
256 s->s3->change_cipher_spec=0; in ssl3_get_finished()
259 i = s->s3->tmp.peer_finish_md_len; in ssl3_get_finished()
268 if (CRYPTO_memcmp(p, s->s3->tmp.peer_finish_md, i) != 0) in ssl3_get_finished()
280 memcpy(s->s3->previous_client_finished, in ssl3_get_finished()
281 s->s3->tmp.peer_finish_md, i); in ssl3_get_finished()
282 s->s3->previous_client_finished_len=i; in ssl3_get_finished()
287 memcpy(s->s3->previous_server_finished, in ssl3_get_finished()
288 s->s3->tmp.peer_finish_md, i); in ssl3_get_finished()
289 s->s3->previous_server_finished_len=i; in ssl3_get_finished()
433 if (s->s3->tmp.reuse_message) in ssl3_get_message()
435 s->s3->tmp.reuse_message=0; in ssl3_get_message()
436 if ((mt >= 0) && (s->s3->tmp.message_type != mt)) in ssl3_get_message()
444 s->init_num = (int)s->s3->tmp.message_size; in ssl3_get_message()
507 s->s3->tmp.message_type= *(p++); in ssl3_get_message()
527 s->s3->tmp.message_size=l; in ssl3_get_message()
536 n = s->s3->tmp.message_size - s->init_num; in ssl3_get_message()
758 if (s->s3->rbuf.buf == NULL) in ssl3_setup_read_buffer()
765 s->s3->init_extra = 1; in ssl3_setup_read_buffer()
774 s->s3->rbuf.buf = p; in ssl3_setup_read_buffer()
775 s->s3->rbuf.len = len; in ssl3_setup_read_buffer()
778 s->packet= &(s->s3->rbuf.buf[0]); in ssl3_setup_read_buffer()
800 if (s->s3->wbuf.buf == NULL) in ssl3_setup_write_buffer()
815 s->s3->wbuf.buf = p; in ssl3_setup_write_buffer()
816 s->s3->wbuf.len = len; in ssl3_setup_write_buffer()
838 if (s->s3->wbuf.buf != NULL) in ssl3_release_write_buffer()
840 freelist_insert(s->ctx, 0, s->s3->wbuf.len, s->s3->wbuf.buf); in ssl3_release_write_buffer()
841 s->s3->wbuf.buf = NULL; in ssl3_release_write_buffer()
848 if (s->s3->rbuf.buf != NULL) in ssl3_release_read_buffer()
850 freelist_insert(s->ctx, 1, s->s3->rbuf.len, s->s3->rbuf.buf); in ssl3_release_read_buffer()
851 s->s3->rbuf.buf = NULL; in ssl3_release_read_buffer()