Lines Matching refs:sig_idx
1636 cache[cache_idx].sig_idx = i + SSL_PKEY_NUM; in ssl_setup_sigalgs()
2001 if ((secbits == 0) && (lu->sig_idx >= SSL_PKEY_NUM) in sigalg_security_bits()
2002 && ((lu->sig_idx - SSL_PKEY_NUM) < (int)ctx->sigalg_list_len)) { in sigalg_security_bits()
2003 secbits = ctx->sigalg_list[lu->sig_idx - SSL_PKEY_NUM].secbits; in sigalg_security_bits()
2060 || lu->sig_idx != (int)cidx) { in tls12_check_peer_sigalg()
2662 if (ssl_cert_is_disabled(SSL_CONNECTION_GET_CTX(s), lu->sig_idx)) in tls12_sigalg_allowed()
2734 clu = ssl_cert_lookup_by_idx(lu->sig_idx, in ssl_set_sig_mask()
2913 int idx = sigptr->sig_idx; in tls1_process_sigalgs()
3719 int sig_idx = lu->sig_idx; in tls12_get_cert_sigalg_idx() local
3720 const SSL_CERT_LOOKUP *clu = ssl_cert_lookup_by_idx(sig_idx, in tls12_get_cert_sigalg_idx()
3731 if (tls12_rpk_and_privkey(s, sig_idx)) in tls12_get_cert_sigalg_idx()
3732 return s->s3.tmp.valid_flags[sig_idx] & CERT_PKEY_RPK ? sig_idx : -1; in tls12_get_cert_sigalg_idx()
3734 return s->s3.tmp.valid_flags[sig_idx] & CERT_PKEY_VALID ? sig_idx : -1; in tls12_get_cert_sigalg_idx()
3806 idx = sig->sig_idx; in has_usable_cert()
3827 if ((int)idx != sig->sig_idx) in is_cert_usable()
3865 : s->cert->pkeys[lu->sig_idx].privatekey; in find_sig_alg()
3900 int sig_idx = -1; in tls_choose_sigalg() local
3940 if ((sig_idx = tls12_get_cert_sigalg_idx(s, lu)) == -1) in tls_choose_sigalg()
3945 sig_idx = lu->sig_idx; in tls_choose_sigalg()
3946 if (cc_idx != sig_idx) in tls_choose_sigalg()
3950 if (!has_usable_cert(s, lu, sig_idx)) in tls_choose_sigalg()
3954 EVP_PKEY *pkey = s->cert->pkeys[sig_idx].privatekey; in tls_choose_sigalg()
3979 sig_idx = lu->sig_idx; in tls_choose_sigalg()
4009 && has_usable_cert(s, lu, lu->sig_idx)) in tls_choose_sigalg()
4030 if (sig_idx == -1) in tls_choose_sigalg()
4031 sig_idx = lu->sig_idx; in tls_choose_sigalg()
4032 s->s3.tmp.cert = &s->cert->pkeys[sig_idx]; in tls_choose_sigalg()