Lines Matching refs:s3
52 || !WPACKET_sub_memcpy_u8(pkt, s->s3.previous_client_finished, in tls_construct_ctos_renegotiate()
53 s->s3.previous_client_finished_len) in tls_construct_ctos_renegotiate()
442 s->s3.alpn_sent = 0; in tls_construct_ctos_alpn()
456 s->s3.alpn_sent = 1; in tls_construct_ctos_alpn()
635 if (s->s3.tmp.pkey != NULL) { in add_key_share()
643 key_share_key = s->s3.tmp.pkey; in add_key_share()
672 s->s3.tmp.pkey = key_share_key; in add_key_share()
673 s->s3.group_id = curve_id; in add_key_share()
678 if (s->s3.tmp.pkey == NULL) in add_key_share()
710 if (s->s3.group_id != 0) { in tls_construct_ctos_key_share()
711 curve_id = s->s3.group_id; in tls_construct_ctos_key_share()
1262 size_t expected_len = s->s3.previous_client_finished_len in tls_parse_stoc_renegotiate()
1263 + s->s3.previous_server_finished_len; in tls_parse_stoc_renegotiate()
1269 || s->s3.previous_client_finished_len != 0) in tls_parse_stoc_renegotiate()
1271 || s->s3.previous_server_finished_len != 0)) { in tls_parse_stoc_renegotiate()
1294 if (!PACKET_get_bytes(pkt, &data, s->s3.previous_client_finished_len) in tls_parse_stoc_renegotiate()
1295 || memcmp(data, s->s3.previous_client_finished, in tls_parse_stoc_renegotiate()
1296 s->s3.previous_client_finished_len) != 0) { in tls_parse_stoc_renegotiate()
1301 if (!PACKET_get_bytes(pkt, &data, s->s3.previous_server_finished_len) in tls_parse_stoc_renegotiate()
1302 || memcmp(data, s->s3.previous_server_finished, in tls_parse_stoc_renegotiate()
1303 s->s3.previous_server_finished_len) != 0) { in tls_parse_stoc_renegotiate()
1307 s->s3.send_connection_binding = 1; in tls_parse_stoc_renegotiate()
1622 s->s3.npn_seen = 1; in tls_parse_stoc_npn()
1636 if (!s->s3.alpn_sent) { in tls_parse_stoc_alpn()
1674 OPENSSL_free(s->s3.alpn_selected); in tls_parse_stoc_alpn()
1675 s->s3.alpn_selected = OPENSSL_malloc(len); in tls_parse_stoc_alpn()
1676 if (s->s3.alpn_selected == NULL) { in tls_parse_stoc_alpn()
1677 s->s3.alpn_selected_len = 0; in tls_parse_stoc_alpn()
1681 if (!PACKET_copy_bytes(pkt, s->s3.alpn_selected, len)) { in tls_parse_stoc_alpn()
1685 s->s3.alpn_selected_len = len; in tls_parse_stoc_alpn()
1689 || memcmp(s->session->ext.alpn_selected, s->s3.alpn_selected, len) in tls_parse_stoc_alpn()
1704 OPENSSL_memdup(s->s3.alpn_selected, s->s3.alpn_selected_len); in tls_parse_stoc_alpn()
1710 s->session->ext.alpn_selected_len = s->s3.alpn_selected_len; in tls_parse_stoc_alpn()
1771 && s->s3.tmp.new_cipher->algorithm_mac != SSL_AEAD in tls_parse_stoc_etm()
1772 && s->s3.tmp.new_cipher->algorithm_enc != SSL_RC4 in tls_parse_stoc_etm()
1773 && s->s3.tmp.new_cipher->algorithm_enc != SSL_eGOST2814789CNT in tls_parse_stoc_etm()
1774 && s->s3.tmp.new_cipher->algorithm_enc != SSL_eGOST2814789CNT12 in tls_parse_stoc_etm()
1775 && s->s3.tmp.new_cipher->algorithm_enc != SSL_MAGMA in tls_parse_stoc_etm()
1776 && s->s3.tmp.new_cipher->algorithm_enc != SSL_KUZNYECHIK) in tls_parse_stoc_etm()
1787 s->s3.flags |= TLS1_FLAGS_RECEIVED_EXTMS; in tls_parse_stoc_ems()
1837 EVP_PKEY *ckey = s->s3.tmp.pkey, *skey = NULL; in tls_parse_stoc_key_share()
1841 if (ckey == NULL || s->s3.peer_tmp != NULL) { in tls_parse_stoc_key_share()
1864 if (group_id == s->s3.group_id) { in tls_parse_stoc_key_share()
1883 s->s3.group_id = group_id; in tls_parse_stoc_key_share()
1884 EVP_PKEY_free(s->s3.tmp.pkey); in tls_parse_stoc_key_share()
1885 s->s3.tmp.pkey = NULL; in tls_parse_stoc_key_share()
1889 if (group_id != s->s3.group_id) { in tls_parse_stoc_key_share()
1953 s->s3.peer_tmp = skey; in tls_parse_stoc_key_share()
1964 s->s3.did_kex = 1; in tls_parse_stoc_key_share()