Move peer chain to SSL_SESSION structure.

Reviewed-by: Richard Levitte <levitte@openssl.org>
This commit is contained in:
Dr. Stephen Henson
2015-06-21 19:34:33 +01:00
parent 8df53b7a7c
commit c34b0f9930
6 changed files with 8 additions and 8 deletions

View File

@@ -834,11 +834,10 @@ STACK_OF(X509) *SSL_get_peer_cert_chain(const SSL *s)
{
STACK_OF(X509) *r;
if ((s == NULL) || (s->session == NULL)
|| (s->session->sess_cert == NULL))
if ((s == NULL) || (s->session == NULL))
r = NULL;
else
r = s->session->sess_cert->cert_chain;
r = s->session->peer_chain;
/*
* If we are a client, cert_chain includes the peer's own certificate; if