Home | History | Annotate | Download | only in ssl

Lines Matching refs:cert

67 static int ssl_set_cert(CERT *c, X509 *x509);
68 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
76 if (!ssl_cert_inst(&ssl->cert))
81 return(ssl_set_cert(ssl->cert,x));
162 if (!ssl_cert_inst(&ssl->cert))
176 ret=ssl_set_pkey(ssl->cert,pkey);
182 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey)
304 if (!ssl_cert_inst(&ssl->cert))
309 ret=ssl_set_pkey(ssl->cert,pkey);
386 if (!ssl_cert_inst(&ctx->cert))
391 return(ssl_set_cert(ctx->cert, x));
394 static int ssl_set_cert(CERT *c, X509 *x)
430 /* don't fail for a cert/key mismatch, just free
432 * cert & key, first this function should be used,
531 if (!ssl_cert_inst(&ctx->cert))
545 ret=ssl_set_pkey(ctx->cert, pkey);
624 if (!ssl_cert_inst(&ctx->cert))
629 return(ssl_set_pkey(ctx->cert,pkey));
707 if (ssl->cert == NULL)
712 if (ssl->cert->key == NULL)
717 if (ssl->cert->key->cert_chain != NULL)
718 sk_X509_pop_free(ssl->cert->key->cert_chain, X509_free);
719 ssl->cert->key->cert_chain = cert_chain;
730 if (ssl->cert == NULL)
733 if (ssl->cert->pkeys[i].x509 == x)
734 return ssl->cert->pkeys[i].cert_chain;