Lines Matching refs:s3
226 s->s3.tmp.cert_request = 0; in tls_setup_handshake()
236 memset(s->s3.client_random, 0, sizeof(s->s3.client_random)); in tls_setup_handshake()
239 s->s3.tmp.cert_req = 0; in tls_setup_handshake()
299 retlen = retlen_l = BIO_get_mem_data(s->s3.handshake_buffer, hdata); in get_cert_verify_tbs_data()
320 const SIGALG_LOOKUP *lu = s->s3.tmp.sigalg; in tls_construct_cert_verify()
323 if (lu == NULL || s->s3.tmp.cert == NULL) { in tls_construct_cert_verify()
327 pkey = s->s3.tmp.cert->privatekey; in tls_construct_cert_verify()
487 if (!tls1_lookup_md(sctx, s->s3.tmp.peer_sigalg, &md)) { in tls_process_cert_verify()
595 if (!s->server && SSL_CONNECTION_IS_TLS13(s) && s->s3.tmp.cert_req == 1) in tls_process_cert_verify()
600 BIO_free(s->s3.handshake_buffer); in tls_process_cert_verify()
601 s->s3.handshake_buffer = NULL; in tls_process_cert_verify()
630 && s->s3.tmp.cert_req == 0 in tls_construct_finished()
647 s->s3.tmp.finish_md); in tls_construct_finished()
653 s->s3.tmp.finish_md_len = finish_md_len; in tls_construct_finished()
655 if (!WPACKET_memcpy(pkt, s->s3.tmp.finish_md, finish_md_len)) { in tls_construct_finished()
679 memcpy(s->s3.previous_client_finished, s->s3.tmp.finish_md, in tls_construct_finished()
681 s->s3.previous_client_finished_len = finish_md_len; in tls_construct_finished()
683 memcpy(s->s3.previous_server_finished, s->s3.tmp.finish_md, in tls_construct_finished()
685 s->s3.previous_server_finished_len = finish_md_len; in tls_construct_finished()
765 s->s3.tmp.peer_finish_md_len = in ssl3_take_mac()
767 s->s3.tmp.peer_finish_md); in ssl3_take_mac()
769 if (s->s3.tmp.peer_finish_md_len == 0) { in ssl3_take_mac()
804 if (s->s3.tmp.new_cipher == NULL) { in tls_process_change_cipher_spec()
809 s->s3.change_cipher_spec = 1; in tls_process_change_cipher_spec()
870 if (!SSL_CONNECTION_IS_TLS13(s) && !s->s3.change_cipher_spec) { in tls_process_finished()
874 s->s3.change_cipher_spec = 0; in tls_process_finished()
876 md_len = s->s3.tmp.peer_finish_md_len; in tls_process_finished()
883 ok = CRYPTO_memcmp(PACKET_data(pkt), s->s3.tmp.peer_finish_md, in tls_process_finished()
887 if ((PACKET_data(pkt)[0] ^ s->s3.tmp.peer_finish_md[0]) != 0xFF) { in tls_process_finished()
905 memcpy(s->s3.previous_client_finished, s->s3.tmp.peer_finish_md, in tls_process_finished()
907 s->s3.previous_client_finished_len = md_len; in tls_process_finished()
909 memcpy(s->s3.previous_server_finished, s->s3.tmp.peer_finish_md, in tls_process_finished()
911 s->s3.previous_server_finished_len = md_len; in tls_process_finished()
1564 && (s->s3.flags & TLS1_FLAGS_STATELESS) != 0) { in tls_get_message_header()
1574 s->s3.tmp.message_type = *mt = SSL3_MT_CHANGE_CIPHER_SPEC; in tls_get_message_header()
1577 s->s3.tmp.message_size = readbytes; in tls_get_message_header()
1610 s->s3.tmp.message_type = *(p++); in tls_get_message_header()
1621 s->s3.tmp.message_size = l; in tls_get_message_header()
1633 s->s3.tmp.message_size = l; in tls_get_message_header()
1650 if (s->s3.tmp.message_type == SSL3_MT_CHANGE_CIPHER_SPEC) { in tls_get_message_body()
1657 n = s->s3.tmp.message_size - s->init_num; in tls_get_message_body()
1701 || (s->s3.tmp.message_type != SSL3_MT_NEWSESSION_TICKET in tls_get_message_body()
1702 && s->s3.tmp.message_type != SSL3_MT_KEY_UPDATE)) { in tls_get_message_body()
1703 if (s->s3.tmp.message_type != SSL3_MT_SERVER_HELLO in tls_get_message_body()
2369 s->s3.server_random + SSL3_RANDOM_SIZE in ssl_choose_client_version()
2381 s->s3.server_random + SSL3_RANDOM_SIZE in ssl_choose_client_version()
2647 s->s3.tmp.message_size in create_synthetic_message_hash()
2704 sk_X509_NAME_pop_free(s->s3.tmp.peer_ca_names, X509_NAME_free); in parse_ca_names()
2705 s->s3.tmp.peer_ca_names = ca_sk; in parse_ca_names()
2779 memcpy(tbs, s->s3.client_random, SSL3_RANDOM_SIZE); in construct_key_exchange_tbs()
2780 memcpy(tbs + SSL3_RANDOM_SIZE, s->s3.server_random, SSL3_RANDOM_SIZE); in construct_key_exchange_tbs()
2805 s->s3.handshake_dgst)) { in tls13_save_handshake_digest_for_pha()
2825 if (!EVP_MD_CTX_copy_ex(s->s3.handshake_dgst, in tls13_restore_handshake_digest_for_pha()