Lines Matching refs:sig_idx
1063 || lu->sig_idx != (int)cidx) { in tls12_check_peer_sigalg()
1612 if (ssl_cert_is_disabled(lu->sig_idx)) in tls12_sigalg_allowed()
1684 clu = ssl_cert_lookup_by_idx(lu->sig_idx); in ssl_set_sig_mask()
1863 int idx = sigptr->sig_idx; in tls1_process_sigalgs()
2582 int sig_idx = lu->sig_idx; in tls12_get_cert_sigalg_idx() local
2583 const SSL_CERT_LOOKUP *clu = ssl_cert_lookup_by_idx(sig_idx); in tls12_get_cert_sigalg_idx()
2592 return s->s3->tmp.valid_flags[sig_idx] & CERT_PKEY_VALID ? sig_idx : -1; in tls12_get_cert_sigalg_idx()
2649 idx = sig->sig_idx; in has_usable_cert()
2670 if ((int)idx != sig->sig_idx) in is_cert_usable()
2708 : s->cert->pkeys[lu->sig_idx].privatekey; in find_sig_alg()
2749 int sig_idx = -1; in tls_choose_sigalg() local
2793 if ((sig_idx = tls12_get_cert_sigalg_idx(s, lu)) == -1) in tls_choose_sigalg()
2798 sig_idx = lu->sig_idx; in tls_choose_sigalg()
2799 if (cc_idx != sig_idx) in tls_choose_sigalg()
2803 if (!has_usable_cert(s, lu, sig_idx)) in tls_choose_sigalg()
2807 EVP_PKEY *pkey = s->cert->pkeys[sig_idx].privatekey; in tls_choose_sigalg()
2833 sig_idx = lu->sig_idx; in tls_choose_sigalg()
2864 && has_usable_cert(s, lu, lu->sig_idx)) in tls_choose_sigalg()
2886 if (sig_idx == -1) in tls_choose_sigalg()
2887 sig_idx = lu->sig_idx; in tls_choose_sigalg()
2888 s->s3->tmp.cert = &s->cert->pkeys[sig_idx]; in tls_choose_sigalg()