Lines Matching refs:s3

3412     EVP_PKEY_free(sc->s3.peer_tmp);  in ssl3_free()
3413 sc->s3.peer_tmp = NULL; in ssl3_free()
3414 EVP_PKEY_free(sc->s3.tmp.pkey); in ssl3_free()
3415 sc->s3.tmp.pkey = NULL; in ssl3_free()
3417 ssl_evp_cipher_free(sc->s3.tmp.new_sym_enc); in ssl3_free()
3418 ssl_evp_md_free(sc->s3.tmp.new_hash); in ssl3_free()
3420 OPENSSL_free(sc->s3.tmp.ctype); in ssl3_free()
3421 sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free); in ssl3_free()
3422 OPENSSL_free(sc->s3.tmp.ciphers_raw); in ssl3_free()
3423 OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen); in ssl3_free()
3424 OPENSSL_free(sc->s3.tmp.peer_sigalgs); in ssl3_free()
3425 OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs); in ssl3_free()
3426 OPENSSL_free(sc->s3.tmp.valid_flags); in ssl3_free()
3428 OPENSSL_free(sc->s3.alpn_selected); in ssl3_free()
3429 OPENSSL_free(sc->s3.alpn_proposed); in ssl3_free()
3432 OPENSSL_free(sc->s3.tmp.psk); in ssl3_free()
3438 memset(&sc->s3, 0, sizeof(sc->s3)); in ssl3_free()
3450 OPENSSL_free(sc->s3.tmp.ctype); in ssl3_clear()
3451 sk_X509_NAME_pop_free(sc->s3.tmp.peer_ca_names, X509_NAME_free); in ssl3_clear()
3452 OPENSSL_free(sc->s3.tmp.ciphers_raw); in ssl3_clear()
3453 OPENSSL_clear_free(sc->s3.tmp.pms, sc->s3.tmp.pmslen); in ssl3_clear()
3454 OPENSSL_free(sc->s3.tmp.peer_sigalgs); in ssl3_clear()
3455 OPENSSL_free(sc->s3.tmp.peer_cert_sigalgs); in ssl3_clear()
3456 OPENSSL_free(sc->s3.tmp.valid_flags); in ssl3_clear()
3458 EVP_PKEY_free(sc->s3.tmp.pkey); in ssl3_clear()
3459 EVP_PKEY_free(sc->s3.peer_tmp); in ssl3_clear()
3463 OPENSSL_free(sc->s3.alpn_selected); in ssl3_clear()
3464 OPENSSL_free(sc->s3.alpn_proposed); in ssl3_clear()
3470 flags = sc->s3.flags & TLS1_FLAGS_QUIC; in ssl3_clear()
3471 memset(&sc->s3, 0, sizeof(sc->s3)); in ssl3_clear()
3472 sc->s3.flags |= flags; in ssl3_clear()
3514 ret = sc->s3.num_renegotiations; in ssl3_ctrl()
3517 ret = sc->s3.num_renegotiations; in ssl3_ctrl()
3518 sc->s3.num_renegotiations = 0; in ssl3_ctrl()
3521 ret = sc->s3.total_renegotiations; in ssl3_ctrl()
3524 ret = (int)(sc->s3.flags); in ssl3_ctrl()
3672 cipher = sc->s3.tmp.new_cipher; in ssl3_ctrl()
3681 if (sc->s3.tmp.cert == NULL) in ssl3_ctrl()
3683 sc->cert->key = sc->s3.tmp.cert; in ssl3_ctrl()
3734 if (SSL_CONNECTION_IS_TLS13(sc) && sc->s3.did_kex) in ssl3_ctrl()
3735 id = sc->s3.group_id; in ssl3_ctrl()
3756 if (sc->server || !sc->s3.tmp.cert_req) in ssl3_ctrl()
3759 *pctype = sc->s3.tmp.ctype; in ssl3_ctrl()
3760 return sc->s3.tmp.ctype_len; in ssl3_ctrl()
3784 if (sc->s3.tmp.peer_sigalg == NULL) in ssl3_ctrl()
3786 *(int *)parg = sc->s3.tmp.peer_sigalg->hash; in ssl3_ctrl()
3790 if (sc->s3.tmp.sigalg == NULL) in ssl3_ctrl()
3792 *(int *)parg = sc->s3.tmp.sigalg->hash; in ssl3_ctrl()
3796 if (sc->session == NULL || sc->s3.peer_tmp == NULL) { in ssl3_ctrl()
3799 EVP_PKEY_up_ref(sc->s3.peer_tmp); in ssl3_ctrl()
3800 *(EVP_PKEY **)parg = sc->s3.peer_tmp; in ssl3_ctrl()
3805 if (sc->session == NULL || sc->s3.tmp.pkey == NULL) { in ssl3_ctrl()
3808 EVP_PKEY_up_ref(sc->s3.tmp.pkey); in ssl3_ctrl()
3809 *(EVP_PKEY **)parg = sc->s3.tmp.pkey; in ssl3_ctrl()
4363 mask_k = s->s3.tmp.mask_k; in ssl3_choose_cipher()
4364 mask_a = s->s3.tmp.mask_a; in ssl3_choose_cipher()
4404 && s->s3.is_probably_safari) { in ssl3_choose_cipher()
4444 alg_k = s->s3.tmp.new_cipher->algorithm_mkey; in ssl3_get_req_cert_type()
4525 if (sc->s3.alert_dispatch > 0) in ssl3_shutdown()
4527 } else if (sc->s3.alert_dispatch > 0) { in ssl3_shutdown()
4550 && sc->s3.alert_dispatch == SSL_ALERT_DISPATCH_NONE) in ssl3_shutdown()
4564 if (sc->s3.renegotiate) in ssl3_write()
4581 if (sc->s3.renegotiate) in ssl3_read_internal()
4583 sc->s3.in_read_app_data = 1; in ssl3_read_internal()
4587 if ((ret == -1) && (sc->s3.in_read_app_data == 2)) { in ssl3_read_internal()
4601 sc->s3.in_read_app_data = 0; in ssl3_read_internal()
4626 sc->s3.renegotiate = 1; in ssl3_renegotiate()
4646 if (sc->s3.renegotiate) { in ssl3_renegotiate_check()
4656 sc->s3.renegotiate = 0; in ssl3_renegotiate_check()
4657 sc->s3.num_renegotiations++; in ssl3_renegotiate_check()
4658 sc->s3.total_renegotiations++; in ssl3_renegotiate_check()
4676 if (s->s3.tmp.new_cipher == NULL) in ssl_get_algorithm2()
4678 alg2 = s->s3.tmp.new_cipher->algorithm2; in ssl_get_algorithm2()
4682 } else if (s->s3.tmp.new_cipher->algorithm_mkey & SSL_PSK) { in ssl_get_algorithm2()
4733 unsigned long alg_k = s->s3.tmp.new_cipher->algorithm_mkey; in ssl_generate_master_secret()
4740 size_t psklen = s->s3.tmp.psklen; in ssl_generate_master_secret()
4761 memcpy(t, s->s3.tmp.psk, psklen); in ssl_generate_master_secret()
4763 OPENSSL_clear_free(s->s3.tmp.psk, psklen); in ssl_generate_master_secret()
4764 s->s3.tmp.psk = NULL; in ssl_generate_master_secret()
4765 s->s3.tmp.psklen = 0; in ssl_generate_master_secret()
4796 s->s3.tmp.pms = NULL; in ssl_generate_master_secret()
4797 s->s3.tmp.pmslen = 0; in ssl_generate_master_secret()
4967 s->s3.tmp.pms = pms; in ssl_derive()
4968 s->s3.tmp.pmslen = pmslen; in ssl_derive()
5019 s->s3.tmp.pms = pms; in ssl_decapsulate()
5020 s->s3.tmp.pmslen = pmslen; in ssl_decapsulate()
5072 s->s3.tmp.pms = pms; in ssl_encapsulate()
5073 s->s3.tmp.pmslen = pmslen; in ssl_encapsulate()
5100 if (SSL_CONNECTION_IS_TLS13(sc) && sc->s3.did_kex) in SSL_get0_group_name()
5101 id = sc->s3.group_id; in SSL_get0_group_name()