Lines Matching refs:X509
518 s->session->peer = s->session->sess_cert->peer_key->x509;
519 /* peer_key->x509 has been set by ssl2_set_certificate. */
524 || s->session->peer != s->session->sess_cert->peer_key->x509)
771 /* type eq x509 */
780 (s->cert->key->x509 == NULL) ||
794 X509 *x509=NULL;
806 i=s->ctx->client_cert_cb(s,&(x509),&(pkey));
816 if ((i == 1) && (pkey != NULL) && (x509 != NULL))
819 if ( !SSL_use_certificate(s,x509) ||
824 X509_free(x509);
829 if (x509 != NULL) X509_free(x509);
866 i=i2d_X509(s->session->sess_cert->peer_key->x509,&p);
875 n=i2d_X509(s->cert->key->x509,&d);
1027 STACK_OF(X509) *sk=NULL;
1031 X509 *x509=NULL;
1034 x509=d2i_X509(NULL,&data,(long)len);
1035 if (x509 == NULL)
1041 if ((sk=sk_X509_new_null()) == NULL || !sk_X509_push(sk,x509))
1067 sc->peer_pkeys[SSL_PKEY_RSA_ENC].x509=x509;
1070 pkey=X509_get_pubkey(x509);
1071 x509=NULL;
1088 X509_free(x509);
1099 if ((sc == NULL) || (sc->peer_key->x509 == NULL) ||
1100 ((pkey=X509_get_pubkey(sc->peer_key->x509)) == NULL))