• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/openssl/ssl/

Lines Matching defs:s3

3294     SSL3_STATE *s3;
3296 if ((s3 = OPENSSL_zalloc(sizeof(*s3))) == NULL)
3298 s->s3 = s3;
3315 if (s == NULL || s->s3 == NULL)
3321 EVP_PKEY_free(s->s3->peer_tmp);
3322 s->s3->peer_tmp = NULL;
3323 EVP_PKEY_free(s->s3->tmp.pkey);
3324 s->s3->tmp.pkey = NULL;
3327 OPENSSL_free(s->s3->tmp.ctype);
3328 sk_X509_NAME_pop_free(s->s3->tmp.peer_ca_names, X509_NAME_free);
3329 OPENSSL_free(s->s3->tmp.ciphers_raw);
3330 OPENSSL_clear_free(s->s3->tmp.pms, s->s3->tmp.pmslen);
3331 OPENSSL_free(s->s3->tmp.peer_sigalgs);
3332 OPENSSL_free(s->s3->tmp.peer_cert_sigalgs);
3334 OPENSSL_free(s->s3->alpn_selected);
3335 OPENSSL_free(s->s3->alpn_proposed);
3340 OPENSSL_clear_free(s->s3, sizeof(*s->s3));
3341 s->s3 = NULL;
3347 OPENSSL_free(s->s3->tmp.ctype);
3348 sk_X509_NAME_pop_free(s->s3->tmp.peer_ca_names, X509_NAME_free);
3349 OPENSSL_free(s->s3->tmp.ciphers_raw);
3350 OPENSSL_clear_free(s->s3->tmp.pms, s->s3->tmp.pmslen);
3351 OPENSSL_free(s->s3->tmp.peer_sigalgs);
3352 OPENSSL_free(s->s3->tmp.peer_cert_sigalgs);
3355 EVP_PKEY_free(s->s3->tmp.pkey);
3356 EVP_PKEY_free(s->s3->peer_tmp);
3361 OPENSSL_free(s->s3->alpn_selected);
3362 OPENSSL_free(s->s3->alpn_proposed);
3364 /* NULL/zero-out everything in the s3 struct */
3365 memset(s->s3, 0, sizeof(*s->s3));
3398 ret = s->s3->num_renegotiations;
3401 ret = s->s3->num_renegotiations;
3402 s->s3->num_renegotiations = 0;
3405 ret = s->s3->total_renegotiations;
3408 ret = (int)(s->s3->flags);
3581 cipher = s->s3->tmp.new_cipher;
3590 if (s->s3->tmp.cert == NULL)
3592 s->cert->key = s->s3->tmp.cert;
3658 if (s->server || !s->s3->tmp.cert_req)
3661 *pctype = s->s3->tmp.ctype;
3662 return s->s3->tmp.ctype_len;
3680 if (s->s3->tmp.peer_sigalg == NULL)
3682 *(int *)parg = s->s3->tmp.peer_sigalg->hash;
3686 if (s->s3->tmp.sigalg == NULL)
3688 *(int *)parg = s->s3->tmp.sigalg->hash;
3693 if (s->session == NULL || s->s3->peer_tmp == NULL) {
3696 EVP_PKEY_up_ref(s->s3->peer_tmp);
3697 *(EVP_PKEY **)parg = s->s3->peer_tmp;
3706 if (s->session == NULL || s->s3->tmp.pkey == NULL) {
3709 EVP_PKEY_up_ref(s->s3->tmp.pkey);
3710 *(EVP_PKEY **)parg = s->s3->tmp.pkey;
4255 mask_k = s->s3->tmp.mask_k;
4256 mask_a = s->s3->tmp.mask_a;
4299 && s->s3->is_probably_safari) {
4336 alg_k = s->s3->tmp.new_cipher->algorithm_mkey;
4412 * written, s->s3->alert_dispatch will be true
4414 if (s->s3->alert_dispatch)
4416 } else if (s->s3->alert_dispatch) {
4439 !s->s3->alert_dispatch)
4448 if (s->s3->renegotiate)
4461 if (s->s3->renegotiate)
4463 s->s3->in_read_app_data = 1;
4467 if ((ret == -1) && (s->s3->in_read_app_data == 2)) {
4481 s->s3->in_read_app_data = 0;
4501 s->s3->renegotiate = 1;
4517 if (s->s3->renegotiate) {
4527 s->s3->renegotiate = 0;
4528 s->s3->num_renegotiations++;
4529 s->s3->total_renegotiations++;
4545 if (s->s3 == NULL || s->s3->tmp.new_cipher == NULL)
4547 alg2 = s->s3->tmp.new_cipher->algorithm2;
4551 } else if (s->s3->tmp.new_cipher->algorithm_mkey & SSL_PSK) {
4601 unsigned long alg_k = s->s3->tmp.new_cipher->algorithm_mkey;
4607 size_t psklen = s->s3->tmp.psklen;
4628 memcpy(t, s->s3->tmp.psk, psklen);
4630 OPENSSL_clear_free(s->s3->tmp.psk, psklen);
4631 s->s3->tmp.psk = NULL;
4632 s->s3->tmp.psklen = 0;
4663 s->s3->tmp.pms = NULL;
4664 s->s3->tmp.pmslen = 0;
4833 s->s3->tmp.pms = pms;
4834 s->s3->tmp.pmslen = pmslen;