Lines Matching refs:cert

227 	    ctx->cert);
267 if ((s->cert = ssl_cert_dup(ctx->cert)) == NULL)
567 ssl_cert_free(s->cert);
914 X509 *cert;
919 if ((cert = s->session->peer_cert) == NULL)
922 X509_up_ref(cert);
924 return cert;
975 tmp = t->cert;
976 if (f->cert != NULL) {
977 CRYPTO_add(&f->cert->references, 1, CRYPTO_LOCK_SSL_CERT);
978 t->cert = f->cert;
980 t->cert = NULL;
990 /* Fix this so it checks all the valid key/cert options */
994 if ((ctx == NULL) || (ctx->cert == NULL) ||
995 (ctx->cert->key->x509 == NULL)) {
999 if (ctx->cert->key->privatekey == NULL) {
1003 return (X509_check_private_key(ctx->cert->key->x509,
1004 ctx->cert->key->privatekey));
1016 if (ssl->cert == NULL) {
1020 if (ssl->cert->key->x509 == NULL) {
1024 if (ssl->cert->key->privatekey == NULL) {
1028 return (X509_check_private_key(ssl->cert->key->x509,
1029 ssl->cert->key->privatekey));
1639 ctx->cipher_list_tls13, str, ctx->cert);
1676 ciphers_tls13, str, s->cert);
2127 if ((ret->cert = ssl_cert_new()) == NULL)
2144 NULL, SSL_DEFAULT_CIPHER_LIST, ret->cert);
2223 ssl_cert_free(ctx->cert);
2374 c = s->cert;
2402 c = s->cert;
2431 if (s->cert->dhe_params_auto == 2) {
2920 * that s->cert or ret->cert will be changed later --
2929 ssl_cert_free(ret->cert);
2930 if ((ret->cert = ssl_cert_dup(s->cert)) == NULL)
3061 return (s->cert->key->x509);
3069 return (s->cert->key->privatekey);
3242 if ((new_cert = ssl_cert_dup(ctx->cert)) == NULL)
3244 ssl_cert_free(ssl->cert);
3245 ssl->cert = new_cert;
3419 if (ctx->cert == NULL)
3422 return ctx->cert->key->x509;
3429 if (ctx->cert == NULL)
3432 return ctx->cert->key->privatekey;
3590 return ctx->cert->security_level;
3597 ctx->cert->security_level = level;
3604 return ssl->cert->security_level;
3611 ssl->cert->security_level = level;