Lines Matching refs:i

135     size_t i;  in ssl_set_pkey()  local
137 if (ssl_cert_lookup_by_pkey(pkey, &i, ctx) == NULL) { in ssl_set_pkey()
142 if (c->pkeys[i].x509 != NULL in ssl_set_pkey()
143 && !X509_check_private_key(c->pkeys[i].x509, pkey)) in ssl_set_pkey()
148 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey()
149 c->pkeys[i].privatekey = pkey; in ssl_set_pkey()
150 c->key = &c->pkeys[i]; in ssl_set_pkey()
260 size_t i; in ssl_set_cert() local
268 if (ssl_cert_lookup_by_pkey(pkey, &i, ctx) == NULL) { in ssl_set_cert()
273 if (i == SSL_PKEY_ECC && !EVP_PKEY_can_sign(pkey)) { in ssl_set_cert()
278 if (c->pkeys[i].privatekey != NULL) { in ssl_set_cert()
284 EVP_PKEY_copy_parameters(pkey, c->pkeys[i].privatekey); in ssl_set_cert()
287 if (!X509_check_private_key(x, c->pkeys[i].privatekey)) { in ssl_set_cert()
293 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert()
294 c->pkeys[i].privatekey = NULL; in ssl_set_cert()
303 X509_free(c->pkeys[i].x509); in ssl_set_cert()
304 c->pkeys[i].x509 = x; in ssl_set_cert()
305 c->key = &(c->pkeys[i]); in ssl_set_cert()
978 size_t i; in ssl_set_cert_and_key() local
1038 if (ssl_cert_lookup_by_pkey(pubkey, &i, ctx) == NULL) { in ssl_set_cert_and_key()
1043 if (!override && (c->pkeys[i].x509 != NULL in ssl_set_cert_and_key()
1044 || c->pkeys[i].privatekey != NULL in ssl_set_cert_and_key()
1045 || c->pkeys[i].chain != NULL)) { in ssl_set_cert_and_key()
1067 OSSL_STACK_OF_X509_free(c->pkeys[i].chain); in ssl_set_cert_and_key()
1068 c->pkeys[i].chain = dup_chain; in ssl_set_cert_and_key()
1070 X509_free(c->pkeys[i].x509); in ssl_set_cert_and_key()
1071 c->pkeys[i].x509 = x509; in ssl_set_cert_and_key()
1073 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_cert_and_key()
1074 c->pkeys[i].privatekey = privatekey; in ssl_set_cert_and_key()
1076 c->key = &(c->pkeys[i]); in ssl_set_cert_and_key()