Lines Matching refs:cert
42 return ssl_set_cert(ssl->cert, x);
50 X509 *cert = NULL, *x = NULL;
74 cert = d2i_X509_bio(in, &x);
77 cert = PEM_read_bio_X509(in, &x, ssl->default_passwd_callback,
84 if (cert == NULL) {
146 ret = ssl_set_pkey(ssl->cert, pkey);
224 return ssl_set_cert(ctx->cert, x);
258 * don't fail for a cert/key mismatch, just free current private
259 * key (when switching to a different cert & key, first this
282 X509 *x = NULL, *cert = NULL;
305 cert = d2i_X509_bio(in, &x);
308 cert = PEM_read_bio_X509(in, &x, ctx->default_passwd_callback,
311 if (cert == NULL) {
351 return ssl_set_pkey(ctx->cert, pkey);
616 /* Is there serverinfo data for the chosen server cert? */
773 if (ctx->cert->key == NULL) {
777 new_serverinfo = OPENSSL_realloc(ctx->cert->key->serverinfo,
783 ctx->cert->key->serverinfo = new_serverinfo;
784 memcpy(ctx->cert->key->serverinfo, serverinfo, serverinfo_length);
785 ctx->cert->key->serverinfo_length = serverinfo_length;
930 CERT *c = ssl != NULL ? ssl->cert : ctx->cert;
975 /* check that key <-> cert match */