Lines Matching refs:s3

56     if (ilen != s->s3.previous_client_finished_len) {  in tls_parse_ctos_renegotiate()
61 if (memcmp(data, s->s3.previous_client_finished, in tls_parse_ctos_renegotiate()
62 s->s3.previous_client_finished_len)) { in tls_parse_ctos_renegotiate()
67 s->s3.send_connection_binding = 1; in tls_parse_ctos_renegotiate()
418 s->s3.npn_seen = 1; in tls_parse_ctos_npn()
452 OPENSSL_free(s->s3.alpn_proposed); in tls_parse_ctos_alpn()
453 s->s3.alpn_proposed = NULL; in tls_parse_ctos_alpn()
454 s->s3.alpn_proposed_len = 0; in tls_parse_ctos_alpn()
456 &s->s3.alpn_proposed, &s->s3.alpn_proposed_len)) { in tls_parse_ctos_alpn()
590 if (s->s3.peer_tmp != NULL) { in tls_parse_ctos_key_share()
615 if (s->s3.group_id != 0 && PACKET_remaining(&key_share_list) == 0) { in tls_parse_ctos_key_share()
644 if (s->s3.group_id != 0 in tls_parse_ctos_key_share()
645 && (ssl_group_id_tls13_to_internal(group_id) != s->s3.group_id in tls_parse_ctos_key_share()
663 s->s3.group_id = group_id; in tls_parse_ctos_key_share()
669 if ((s->s3.peer_tmp = ssl_generate_param_group(s, group_id)) == NULL) { in tls_parse_ctos_key_share()
675 if (tls13_set_encoded_pub_key(s->s3.peer_tmp, in tls_parse_ctos_key_share()
708 || (s->s3.flags & TLS1_FLAGS_STATELESS) == 0) in tls_parse_ctos_cookie()
793 if (group_id != s->s3.group_id in tls_parse_ctos_cookie()
794 || s->s3.tmp.new_cipher in tls_parse_ctos_cookie()
843 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, &hrrpkt, in tls_parse_ctos_cookie()
862 || !WPACKET_put_bytes_u16(&hrrpkt, s->s3.group_id) in tls_parse_ctos_cookie()
940 s->s3.flags |= TLS1_FLAGS_RECEIVED_EXTMS; in tls_parse_ctos_ems()
1177 s->s3.tmp.new_cipher->algorithm2)))) { in tls_parse_ctos_psk()
1250 if (!s->s3.send_connection_binding) in tls_construct_stoc_renegotiate()
1257 || !WPACKET_memcpy(pkt, s->s3.previous_client_finished, in tls_construct_stoc_renegotiate()
1258 s->s3.previous_client_finished_len) in tls_construct_stoc_renegotiate()
1259 || !WPACKET_memcpy(pkt, s->s3.previous_server_finished, in tls_construct_stoc_renegotiate()
1260 s->s3.previous_server_finished_len) in tls_construct_stoc_renegotiate()
1320 unsigned long alg_k = s->s3.tmp.new_cipher->algorithm_mkey; in tls_construct_stoc_ec_pt_formats()
1321 unsigned long alg_a = s->s3.tmp.new_cipher->algorithm_auth; in tls_construct_stoc_ec_pt_formats()
1351 if (s->s3.group_id == 0) in tls_construct_stoc_supported_groups()
1373 if (s->s3.group_id == group) in tls_construct_stoc_supported_groups()
1467 int npn_seen = s->s3.npn_seen; in tls_construct_stoc_next_proto_neg()
1470 s->s3.npn_seen = 0; in tls_construct_stoc_next_proto_neg()
1482 s->s3.npn_seen = 1; in tls_construct_stoc_next_proto_neg()
1492 if (s->s3.alpn_selected == NULL) in tls_construct_stoc_alpn()
1499 || !WPACKET_sub_memcpy_u8(pkt, s->s3.alpn_selected, in tls_construct_stoc_alpn()
1500 s->s3.alpn_selected_len) in tls_construct_stoc_alpn()
1543 if (s->s3.tmp.new_cipher->algorithm_mac == SSL_AEAD in tls_construct_stoc_etm()
1544 || s->s3.tmp.new_cipher->algorithm_enc == SSL_RC4 in tls_construct_stoc_etm()
1545 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT in tls_construct_stoc_etm()
1546 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT12 in tls_construct_stoc_etm()
1547 || s->s3.tmp.new_cipher->algorithm_enc == SSL_MAGMA in tls_construct_stoc_etm()
1548 || s->s3.tmp.new_cipher->algorithm_enc == SSL_KUZNYECHIK) { in tls_construct_stoc_etm()
1566 if ((s->s3.flags & TLS1_FLAGS_RECEIVED_EXTMS) == 0) in tls_construct_stoc_ems()
1605 EVP_PKEY *ckey = s->s3.peer_tmp, *skey = NULL; in tls_construct_stoc_key_share()
1616 s->s3.group_id)) in tls_construct_stoc_key_share()
1643 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id)) { in tls_construct_stoc_key_share()
1649 s->s3.group_id)) == NULL) { in tls_construct_stoc_key_share()
1682 s->s3.tmp.pkey = skey; in tls_construct_stoc_key_share()
1720 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
1725 s->s3.did_kex = 1; in tls_construct_stoc_key_share()
1746 if ((s->s3.flags & TLS1_FLAGS_STATELESS) == 0) in tls_construct_stoc_cookie()
1761 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id) in tls_construct_stoc_cookie()
1762 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, pkt, in tls_construct_stoc_cookie()
1765 || !WPACKET_put_bytes_u8(pkt, s->s3.peer_tmp == NULL) in tls_construct_stoc_cookie()
1873 if (((s->s3.tmp.new_cipher->id & 0xFFFF) != 0x80 in tls_construct_stoc_cryptopro_bug()
1874 && (s->s3.tmp.new_cipher->id & 0xFFFF) != 0x81) in tls_construct_stoc_cryptopro_bug()