Backport: Revise ssl code to use CERT_PKEY structure when outputting a certificate chain (from HEAD)

This commit is contained in:
Dr. Stephen Henson
2012-04-06 12:00:24 +00:00
parent 736d69750d
commit 7e65b21a24
9 changed files with 28 additions and 21 deletions

View File

@@ -3211,7 +3211,7 @@ int ssl3_send_client_certificate(SSL *s)
{
s->state=SSL3_ST_CW_CERT_D;
l=ssl3_output_cert_chain(s,
(s->s3->tmp.cert_req == 2)?NULL:s->cert->key->x509);
(s->s3->tmp.cert_req == 2)?NULL:s->cert->key);
s->init_num=(int)l;
s->init_off=0;
}