STACK_OF(X509) *r;  if ((s == NULL) || (s->session == NULL) || (s->session->sess_cert == NULL)) r=NULL;
SSL_CIPHER *c; STACK_OF(SSL_CIPHER) *sk; int i,n;  n=ssl_put_cipher_by_char(s,NULL,NULL); if ((num%n) != 0) { SSLerr(SSL_F_SSL_BYTES_TO_CIPHER_LIST,SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST); return(NULL); } if ((skp == NULL) || (*skp == NULL)) sk=sk_SSL_CIPHER_new_null();
STACK_OF(X509) *SSL_get_peer_cert_chain(SSL *s)	{	STACK_OF(X509) *r;		if ((s == NULL) || (s->session == NULL) || (s->session->sess_cert == NULL))		r=NULL;	else		r=s->session->sess_cert->cert_chain;	/* If we are a client, cert_chain includes the peer's own	 * certificate; if we are a server, it does not. */		return(r);	}