Lines Matching refs:s3

57     if (ilen != s->s3.previous_client_finished_len) {  in tls_parse_ctos_renegotiate()
62 ok = memcmp(data, s->s3.previous_client_finished, in tls_parse_ctos_renegotiate()
63 s->s3.previous_client_finished_len); in tls_parse_ctos_renegotiate()
66 if ((data[0] ^ s->s3.previous_client_finished[0]) != 0xFF) { in tls_parse_ctos_renegotiate()
76 s->s3.send_connection_binding = 1; in tls_parse_ctos_renegotiate()
432 s->s3.npn_seen = 1; in tls_parse_ctos_npn()
466 OPENSSL_free(s->s3.alpn_proposed); in tls_parse_ctos_alpn()
467 s->s3.alpn_proposed = NULL; in tls_parse_ctos_alpn()
468 s->s3.alpn_proposed_len = 0; in tls_parse_ctos_alpn()
470 &s->s3.alpn_proposed, &s->s3.alpn_proposed_len)) { in tls_parse_ctos_alpn()
619 if (s->s3.peer_tmp != NULL) { in tls_parse_ctos_key_share()
644 if (s->s3.group_id != 0 && PACKET_remaining(&key_share_list) == 0) { in tls_parse_ctos_key_share()
673 if (s->s3.group_id != 0 in tls_parse_ctos_key_share()
674 && (group_id != s->s3.group_id in tls_parse_ctos_key_share()
699 s->s3.group_id = group_id; in tls_parse_ctos_key_share()
703 if ((s->s3.peer_tmp = ssl_generate_param_group(s, group_id)) == NULL) { in tls_parse_ctos_key_share()
709 if (tls13_set_encoded_pub_key(s->s3.peer_tmp, in tls_parse_ctos_key_share()
742 || (s->s3.flags & TLS1_FLAGS_STATELESS) == 0) in tls_parse_ctos_cookie()
827 if (group_id != s->s3.group_id in tls_parse_ctos_cookie()
828 || s->s3.tmp.new_cipher in tls_parse_ctos_cookie()
877 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, &hrrpkt, in tls_parse_ctos_cookie()
896 || !WPACKET_put_bytes_u16(&hrrpkt, s->s3.group_id) in tls_parse_ctos_cookie()
974 s->s3.flags |= TLS1_FLAGS_RECEIVED_EXTMS; in tls_parse_ctos_ems()
1214 s->s3.tmp.new_cipher->algorithm2)))) { in tls_parse_ctos_psk()
1289 if (!s->s3.send_connection_binding) in tls_construct_stoc_renegotiate()
1296 || !WPACKET_memcpy(pkt, s->s3.previous_client_finished, in tls_construct_stoc_renegotiate()
1297 s->s3.previous_client_finished_len) in tls_construct_stoc_renegotiate()
1298 || !WPACKET_memcpy(pkt, s->s3.previous_server_finished, in tls_construct_stoc_renegotiate()
1299 s->s3.previous_server_finished_len) in tls_construct_stoc_renegotiate()
1359 unsigned long alg_k = s->s3.tmp.new_cipher->algorithm_mkey; in tls_construct_stoc_ec_pt_formats()
1360 unsigned long alg_a = s->s3.tmp.new_cipher->algorithm_auth; in tls_construct_stoc_ec_pt_formats()
1390 if (s->s3.group_id == 0) in tls_construct_stoc_supported_groups()
1412 if (s->s3.group_id == group) in tls_construct_stoc_supported_groups()
1506 int npn_seen = s->s3.npn_seen; in tls_construct_stoc_next_proto_neg()
1509 s->s3.npn_seen = 0; in tls_construct_stoc_next_proto_neg()
1521 s->s3.npn_seen = 1; in tls_construct_stoc_next_proto_neg()
1532 if (s->s3.alpn_selected == NULL) in tls_construct_stoc_alpn()
1539 || !WPACKET_sub_memcpy_u8(pkt, s->s3.alpn_selected, in tls_construct_stoc_alpn()
1540 s->s3.alpn_selected_len) in tls_construct_stoc_alpn()
1583 if (s->s3.tmp.new_cipher->algorithm_mac == SSL_AEAD in tls_construct_stoc_etm()
1584 || s->s3.tmp.new_cipher->algorithm_enc == SSL_RC4 in tls_construct_stoc_etm()
1585 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT in tls_construct_stoc_etm()
1586 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT12 in tls_construct_stoc_etm()
1587 || s->s3.tmp.new_cipher->algorithm_enc == SSL_MAGMA in tls_construct_stoc_etm()
1588 || s->s3.tmp.new_cipher->algorithm_enc == SSL_KUZNYECHIK) { in tls_construct_stoc_etm()
1606 if ((s->s3.flags & TLS1_FLAGS_RECEIVED_EXTMS) == 0) in tls_construct_stoc_ems()
1645 EVP_PKEY *ckey = s->s3.peer_tmp, *skey = NULL; in tls_construct_stoc_key_share()
1655 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id) in tls_construct_stoc_key_share()
1685 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id)) { in tls_construct_stoc_key_share()
1691 s->s3.group_id)) == NULL) { in tls_construct_stoc_key_share()
1724 s->s3.tmp.pkey = skey; in tls_construct_stoc_key_share()
1762 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
1767 s->s3.did_kex = 1; in tls_construct_stoc_key_share()
1788 if ((s->s3.flags & TLS1_FLAGS_STATELESS) == 0) in tls_construct_stoc_cookie()
1803 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id) in tls_construct_stoc_cookie()
1804 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, pkt, in tls_construct_stoc_cookie()
1807 || !WPACKET_put_bytes_u8(pkt, s->s3.peer_tmp == NULL) in tls_construct_stoc_cookie()
1915 if (((s->s3.tmp.new_cipher->id & 0xFFFF) != 0x80 in tls_construct_stoc_cryptopro_bug()
1916 && (s->s3.tmp.new_cipher->id & 0xFFFF) != 0x81) in tls_construct_stoc_cryptopro_bug()