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()
1215 s->s3.tmp.new_cipher->algorithm2)))) { in tls_parse_ctos_psk()
1290 if (!s->s3.send_connection_binding) in tls_construct_stoc_renegotiate()
1297 || !WPACKET_memcpy(pkt, s->s3.previous_client_finished, in tls_construct_stoc_renegotiate()
1298 s->s3.previous_client_finished_len) in tls_construct_stoc_renegotiate()
1299 || !WPACKET_memcpy(pkt, s->s3.previous_server_finished, in tls_construct_stoc_renegotiate()
1300 s->s3.previous_server_finished_len) in tls_construct_stoc_renegotiate()
1360 unsigned long alg_k = s->s3.tmp.new_cipher->algorithm_mkey; in tls_construct_stoc_ec_pt_formats()
1361 unsigned long alg_a = s->s3.tmp.new_cipher->algorithm_auth; in tls_construct_stoc_ec_pt_formats()
1391 if (s->s3.group_id == 0) in tls_construct_stoc_supported_groups()
1413 if (s->s3.group_id == group) in tls_construct_stoc_supported_groups()
1507 int npn_seen = s->s3.npn_seen; in tls_construct_stoc_next_proto_neg()
1510 s->s3.npn_seen = 0; in tls_construct_stoc_next_proto_neg()
1522 s->s3.npn_seen = 1; in tls_construct_stoc_next_proto_neg()
1533 if (s->s3.alpn_selected == NULL) in tls_construct_stoc_alpn()
1540 || !WPACKET_sub_memcpy_u8(pkt, s->s3.alpn_selected, in tls_construct_stoc_alpn()
1541 s->s3.alpn_selected_len) in tls_construct_stoc_alpn()
1584 if (s->s3.tmp.new_cipher->algorithm_mac == SSL_AEAD in tls_construct_stoc_etm()
1585 || s->s3.tmp.new_cipher->algorithm_enc == SSL_RC4 in tls_construct_stoc_etm()
1586 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT in tls_construct_stoc_etm()
1587 || s->s3.tmp.new_cipher->algorithm_enc == SSL_eGOST2814789CNT12 in tls_construct_stoc_etm()
1588 || s->s3.tmp.new_cipher->algorithm_enc == SSL_MAGMA in tls_construct_stoc_etm()
1589 || s->s3.tmp.new_cipher->algorithm_enc == SSL_KUZNYECHIK) { in tls_construct_stoc_etm()
1607 if ((s->s3.flags & TLS1_FLAGS_RECEIVED_EXTMS) == 0) in tls_construct_stoc_ems()
1646 EVP_PKEY *ckey = s->s3.peer_tmp, *skey = NULL; in tls_construct_stoc_key_share()
1656 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id) in tls_construct_stoc_key_share()
1686 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id)) { in tls_construct_stoc_key_share()
1692 s->s3.group_id)) == NULL) { in tls_construct_stoc_key_share()
1725 s->s3.tmp.pkey = skey; in tls_construct_stoc_key_share()
1763 if (ssl_gensecret(s, s->s3.tmp.pms, s->s3.tmp.pmslen) == 0) { in tls_construct_stoc_key_share()
1768 s->s3.did_kex = 1; in tls_construct_stoc_key_share()
1790 if ((s->s3.flags & TLS1_FLAGS_STATELESS) == 0) in tls_construct_stoc_cookie()
1805 || !WPACKET_put_bytes_u16(pkt, s->s3.group_id) in tls_construct_stoc_cookie()
1806 || !ssl->method->put_cipher_by_char(s->s3.tmp.new_cipher, pkt, in tls_construct_stoc_cookie()
1809 || !WPACKET_put_bytes_u8(pkt, s->s3.peer_tmp == NULL) in tls_construct_stoc_cookie()
1917 if (((s->s3.tmp.new_cipher->id & 0xFFFF) != 0x80 in tls_construct_stoc_cryptopro_bug()
1918 && (s->s3.tmp.new_cipher->id & 0xFFFF) != 0x81) in tls_construct_stoc_cryptopro_bug()