Lines Matching defs: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 = cert->mask;
201 ret->export_mask = cert->export_mask;
204 if (cert->rsa_tmp != NULL)
206 RSA_up_ref(cert->rsa_tmp);
207 ret->rsa_tmp = cert->rsa_tmp;
209 ret->rsa_tmp_cb = cert->rsa_tmp_cb;
213 if (cert->dh_tmp != NULL)
215 ret->dh_tmp = DHparams_dup(cert->dh_tmp);
221 if (cert->dh_tmp->priv_key)
223 BIGNUM *b = BN_dup(cert->dh_tmp->priv_key);
231 if (cert->dh_tmp->pub_key)
233 BIGNUM *b = BN_dup(cert->dh_tmp->pub_key);
242 ret->dh_tmp_cb = cert->dh_tmp_cb;
246 if (cert->ecdh_tmp)
248 ret->ecdh_tmp = EC_KEY_dup(cert->ecdh_tmp);
255 ret->ecdh_tmp_cb = cert->ecdh_tmp_cb;
260 if (cert->pkeys[i].x509 != NULL)
262 ret->pkeys[i].x509 = cert->pkeys[i].x509;
267 if (cert->pkeys[i].privatekey != NULL)
269 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey;
391 * s->cert being NULL, otherwise we could do without the
646 * much to do with CAs, either, since it will load any old cert.