Lines Matching defs:cert
174 CERT *ssl_cert_dup(CERT *cert)
188 ret->key = &ret->pkeys[cert->key - &cert->pkeys[0]];
189 /* or ret->key = ret->pkeys + (cert->key - cert->pkeys),
192 ret->valid = cert->valid;
193 ret->mask = cert->mask;
194 ret->export_mask = cert->export_mask;
197 if (cert->rsa_tmp != NULL)
199 RSA_up_ref(cert->rsa_tmp);
200 ret->rsa_tmp = cert->rsa_tmp;
202 ret->rsa_tmp_cb = cert->rsa_tmp_cb;
206 if (cert->dh_tmp != NULL)
209 ret->dh_tmp = DHparams_dup(cert->dh_tmp);
215 if (cert->dh_tmp->priv_key)
217 BIGNUM *b = BN_dup(cert->dh_tmp->priv_key);
225 if (cert->dh_tmp->pub_key)
227 BIGNUM *b = BN_dup(cert->dh_tmp->pub_key);
236 ret->dh_tmp_cb = cert->dh_tmp_cb;
241 if (cert->pkeys[i].x509 != NULL)
243 ret->pkeys[i].x509 = cert->pkeys[i].x509;
248 if (cert->pkeys[i].privatekey != NULL)
250 ret->pkeys[i].privatekey = cert->pkeys[i].privatekey;
361 * s->cert being NULL, otherwise we could do without the
610 * much to do with CAs, either, since it will load any old cert.