Home
last modified time | relevance | path

Searched refs:pkeys (Results 1 – 10 of 10) sorted by relevance

/openssl/ssl/
H A Dssl_rsa.c141 if (c->pkeys[i].x509 != NULL in ssl_set_pkey()
145 EVP_PKEY_free(c->pkeys[i].privatekey); in ssl_set_pkey()
147 c->pkeys[i].privatekey = pkey; in ssl_set_pkey()
148 c->key = &c->pkeys[i]; in ssl_set_pkey()
298 X509_free(c->pkeys[i].x509); in ssl_set_cert()
300 c->pkeys[i].x509 = x; in ssl_set_cert()
301 c->key = &(c->pkeys[i]); in ssl_set_cert()
1056 c->pkeys[i].chain = dup_chain; in ssl_set_cert_and_key()
1058 X509_free(c->pkeys[i].x509); in ssl_set_cert_and_key()
1060 c->pkeys[i].x509 = x509; in ssl_set_cert_and_key()
[all …]
H A Dssl_cert.c77 if (ret->pkeys == NULL) { in ssl_cert_new()
87 OPENSSL_free(ret->pkeys); in ssl_cert_new()
108 if (ret->pkeys == NULL) { in ssl_cert_dup()
113 ret->key = &ret->pkeys[cert->key - cert->pkeys]; in ssl_cert_dup()
115 OPENSSL_free(ret->pkeys); in ssl_cert_dup()
130 CERT_PKEY *rpk = ret->pkeys + i; in ssl_cert_dup()
245 CERT_PKEY *cpk = c->pkeys + i; in ssl_cert_clear_certs()
289 OPENSSL_free(c->pkeys); in ssl_cert_free()
365 CERT_PKEY *cpk = c->pkeys + i; in ssl_cert_select_current()
373 CERT_PKEY *cpk = c->pkeys + i; in ssl_cert_select_current()
[all …]
H A Dssl_cert_comp.c390 return ssl_compress_certs(ssl, sc->cert->pkeys, alg); in SSL_compress_certs()
404 ret = ssl_compress_certs(new, ctx->cert->pkeys, alg); in SSL_CTX_compress_certs()
H A Dt1_lib.c1830 if (s->cert->pkeys[real_idx].privatekey != NULL) { in tls1_get_legacy_sigalg()
1845 if (s->cert->pkeys[real_idx].privatekey != NULL) { in tls1_get_legacy_sigalg()
1852 idx = s->cert->key - s->cert->pkeys; in tls1_get_legacy_sigalg()
3290 idx = (int)(cpk - c->pkeys); in tls1_check_chain()
3292 cpk = c->pkeys + idx; in tls1_check_chain()
3810 return check_cert_usable(s, sig, s->cert->pkeys[idx].x509, in has_usable_cert()
3811 s->cert->pkeys[idx].privatekey); in has_usable_cert()
3865 : s->cert->pkeys[lu->sig_idx].privatekey; in find_sig_alg()
3918 if (!s->server && !ssl_has_cert(s, s->cert->key - s->cert->pkeys)) in tls_choose_sigalg()
3943 int cc_idx = s->cert->key - s->cert->pkeys; in tls_choose_sigalg()
[all …]
H A Dssl_local.h2059 CERT_PKEY *pkeys; member
2435 && sc->cert->pkeys[idx].privatekey != NULL in tls12_rpk_and_privkey()
2436 && sc->cert->pkeys[idx].x509 == NULL; in tls12_rpk_and_privkey()
2466 return s->cert->pkeys[idx].privatekey != NULL; in ssl_has_cert()
2468 return s->cert->pkeys[idx].x509 != NULL in ssl_has_cert()
2469 && s->cert->pkeys[idx].privatekey != NULL; in ssl_has_cert()
H A Dssl_conf.c456 char **pfilename = &cctx->cert_filename[c->key - c->pkeys]; in cmd_Certificate()
1059 if (p && !c->pkeys[i].privatekey) { in SSL_CONF_CTX_finish()
H A Dssl_lib.c4562 ex_kusage = X509_get_key_usage(c->pkeys[SSL_PKEY_ECC].x509); in ssl_set_masks()
/openssl/ssl/statem/
H A Dstatem_srvr.c2970 rsa = s->cert->pkeys[SSL_PKEY_RSA].privatekey; in tls_process_cke_rsa()
3222 pk = s->cert->pkeys[SSL_PKEY_GOST12_512].privatekey; in tls_process_cke_gost()
3224 pk = s->cert->pkeys[SSL_PKEY_GOST12_256].privatekey; in tls_process_cke_gost()
3227 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in tls_process_cke_gost()
3230 pk = s->cert->pkeys[SSL_PKEY_GOST01].privatekey; in tls_process_cke_gost()
3329 pk = s->cert->pkeys[SSL_PKEY_GOST12_512].privatekey != NULL ? in tls_process_cke_gost18()
3330 s->cert->pkeys[SSL_PKEY_GOST12_512].privatekey : in tls_process_cke_gost18()
3331 s->cert->pkeys[SSL_PKEY_GOST12_256].privatekey; in tls_process_cke_gost18()
H A Dstatem_lib.c1949 curve = ssl_get_EC_curve_nid(s->cert->pkeys[SSL_PKEY_ECC].privatekey); in is_tls13_capable()
/openssl/
H A DCHANGES.md20625 * Fix the various library and `apps/` files to free up pkeys obtained from

Completed in 161 milliseconds