Lines Matching refs:cert
181 CERT *ssl_cert_dup(CERT *cert)
195 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]];
196 /* or ret->key = ret->pkeys + (cert->key - cert->pkeys),
199 ret->valid = cert->valid;
200 ret->mask_k = cert->mask_k;
201 ret->mask_a = cert->mask_a;
202 ret->export_mask_k = cert->export_mask_k;
203 ret->export_mask_a = cert->export_mask_a;
206 if (cert->rsa_tmp != NULL)
208 RSA_up_ref(cert->rsa_tmp);
209 ret->rsa_tmp = cert->rsa_tmp;
211 ret->rsa_tmp_cb = cert->rsa_tmp_cb;
215 if (cert->dh_tmp != NULL)
217 ret->dh_tmp = DHparams_dup(cert->dh_tmp);
223 if (cert->dh_tmp->priv_key)
225 BIGNUM *b = BN_dup(cert->dh_tmp->priv_key);
233 if (cert->dh_tmp->pub_key)
235 BIGNUM *b = BN_dup(cert->dh_tmp->pub_key);
244 ret->dh_tmp_cb = cert->dh_tmp_cb;
248 if (cert->ecdh_tmp)
250 ret->ecdh_tmp = EC_KEY_dup(cert->ecdh_tmp);
257 ret->ecdh_tmp_cb = cert->ecdh_tmp_cb;
262 if (cert->pkeys[i].x509 != NULL)
264 ret->pkeys[i].x509 = cert->pkeys[i].x509;
269 if (cert->pkeys[i].privatekey != NULL)
271 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey;
364 * s->cert being NULL, otherwise we could do without the
620 * much to do with CAs, either, since it will load any old cert.