• Home
  • Raw
  • Download

Lines Matching refs:s3

191     if (s->s3->rbuf.buf != NULL)  in dtls1_copy_record()
192 OPENSSL_free(s->s3->rbuf.buf); in dtls1_copy_record()
196 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER)); in dtls1_copy_record()
197 memcpy(&(s->s3->rrec), &(rdata->rrec), sizeof(SSL3_RECORD)); in dtls1_copy_record()
200 memcpy(&(s->s3->read_sequence[2]), &(rdata->packet[5]), 6); in dtls1_copy_record()
229 memcpy(&(rdata->rbuf), &(s->s3->rbuf), sizeof(SSL3_BUFFER)); in dtls1_buffer_record()
230 memcpy(&(rdata->rrec), &(s->s3->rrec), sizeof(SSL3_RECORD)); in dtls1_buffer_record()
252 memset(&(s->s3->rbuf), 0, sizeof(SSL3_BUFFER)); in dtls1_buffer_record()
253 memset(&(s->s3->rrec), 0, sizeof(SSL3_RECORD)); in dtls1_buffer_record()
317 s->s3->rrec.seq_num); in dtls1_process_buffered_records()
355 if (s->s3->rbuf.buf != NULL)
356 OPENSSL_free(s->s3->rbuf.buf);
360 memcpy(&(s->s3->rbuf), &(rdata->rbuf), sizeof(SSL3_BUFFER));
361 memcpy(&(s->s3->rrec), &(rdata->rrec), sizeof(SSL3_RECORD));
389 rr= &(s->s3->rrec); in dtls1_process_record()
544 rr= &(s->s3->rrec); in dtls1_get_record()
560 n=ssl3_read_n(s, DTLS1_RT_HEADER_LENGTH, s->s3->rbuf.len, 0); in dtls1_get_record()
584 memcpy(&(s->s3->read_sequence[2]), p, 6); in dtls1_get_record()
620 if (rr->length > s->s3->rbuf.len - DTLS1_RT_HEADER_LENGTH) in dtls1_get_record()
624 if ((pp=OPENSSL_realloc(s->s3->rbuf.buf, newlen))==NULL) in dtls1_get_record()
629 p = pp + (p - s->s3->rbuf.buf); in dtls1_get_record()
630 s->s3->rbuf.buf=pp; in dtls1_get_record()
631 s->s3->rbuf.len=newlen; in dtls1_get_record()
632 s->packet= &(s->s3->rbuf.buf[0]); in dtls1_get_record()
756 if (s->s3->rbuf.buf == NULL) /* Not initialized yet */ in dtls1_read_bytes()
782 s->s3->in_read_app_data != 2)) in dtls1_read_bytes()
804 rr = &(s->s3->rrec); in dtls1_read_bytes()
853 if (s->s3->change_cipher_spec /* set when we receive ChangeCipherSpec, in dtls1_read_bytes()
981 s->s3->in_read_app_data=2; in dtls1_read_bytes()
1052 !(s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS) && in dtls1_read_bytes()
1053 !s->s3->renegotiate) in dtls1_read_bytes()
1069 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in dtls1_read_bytes()
1114 s->s3->warn_alert = alert_descr; in dtls1_read_bytes()
1166 s->s3->fatal_alert = alert_descr; in dtls1_read_bytes()
1228 s->s3->change_cipher_spec=1; in dtls1_read_bytes()
1278 !(s->s3->flags & SSL3_FLAGS_NO_RENEGOTIATE_CIPHERS)) in dtls1_read_bytes()
1302 if (s->s3->rbuf.left == 0) /* no read-ahead left? */ in dtls1_read_bytes()
1350 if (s->s3->in_read_app_data && in dtls1_read_bytes()
1351 (s->s3->total_renegotiations != 0) && in dtls1_read_bytes()
1363 s->s3->in_read_app_data=2; in dtls1_read_bytes()
1477 if (s->s3->wbuf.left != 0) in do_dtls1_write()
1483 if (s->s3->wbuf.len < len_with_overhead) in do_dtls1_write()
1485 if ((p=OPENSSL_realloc(s->s3->wbuf.buf, len_with_overhead)) == NULL) { in do_dtls1_write()
1489 s->s3->wbuf.buf = p; in do_dtls1_write()
1490 s->s3->wbuf.len = len_with_overhead; in do_dtls1_write()
1494 if (s->s3->alert_dispatch) in do_dtls1_write()
1505 wr= &(s->s3->wrec); in do_dtls1_write()
1506 wb= &(s->s3->wbuf); in do_dtls1_write()
1526 if (!clear && !create_empty_fragment && !s->s3->empty_fragment_done in do_dtls1_write()
1533 if (s->s3->need_empty_fragments && type == SSL3_RT_APPLICATION_DATA) in do_dtls1_write()
1543 if (s->s3->wbuf.len < (size_t)prefix_len + SSL3_RT_MAX_PACKET_SIZE) in do_dtls1_write()
1551 s->s3->empty_fragment_done = 1; in do_dtls1_write()
1640 memcpy(pseq, &(s->s3->write_sequence[2]), 6); in do_dtls1_write()
1654 *((PQ_64BIT *)&(s->s3->write_sequence[0]))); in do_dtls1_write()
1657 ssl3_record_sequence_update(&(s->s3->write_sequence[0])); in do_dtls1_write()
1672 s->s3->wpend_tot=len; in do_dtls1_write()
1673 s->s3->wpend_buf=buf; in do_dtls1_write()
1674 s->s3->wpend_type=type; in do_dtls1_write()
1675 s->s3->wpend_ret=len; in do_dtls1_write()
1689 const unsigned char *seq = s->s3->read_sequence; in dtls1_record_replay_check()
1694 memcpy (s->s3->rrec.seq_num,seq,8); in dtls1_record_replay_check()
1703 memcpy (s->s3->rrec.seq_num,seq,8); in dtls1_record_replay_check()
1712 const unsigned char *seq = s->s3->read_sequence; in dtls1_record_bitmap_update()
1739 s->s3->alert_dispatch=0; in dtls1_dispatch_alert()
1742 *ptr++ = s->s3->send_alert[0]; in dtls1_dispatch_alert()
1743 *ptr++ = s->s3->send_alert[1]; in dtls1_dispatch_alert()
1746 if (s->s3->send_alert[1] == DTLS1_AD_MISSING_HANDSHAKE_MESSAGE) in dtls1_dispatch_alert()
1766 s->s3->alert_dispatch=1; in dtls1_dispatch_alert()
1771 if (s->s3->send_alert[0] == SSL3_AL_FATAL in dtls1_dispatch_alert()
1773 || s->s3->send_alert[1] == DTLS1_AD_MISSING_HANDSHAKE_MESSAGE in dtls1_dispatch_alert()
1779 s->msg_callback(1, s->version, SSL3_RT_ALERT, s->s3->send_alert, in dtls1_dispatch_alert()
1789 j=(s->s3->send_alert[0]<<8)|s->s3->send_alert[1]; in dtls1_dispatch_alert()
1888 unsigned int seq_bytes = sizeof(s->s3->read_sequence); in dtls1_reset_seq_numbers()
1892 seq = s->s3->read_sequence; in dtls1_reset_seq_numbers()
1899 seq = s->s3->write_sequence; in dtls1_reset_seq_numbers()
1900 memcpy(s->d1->last_write_sequence, seq, sizeof(s->s3->write_sequence)); in dtls1_reset_seq_numbers()