Revise ssl code to use a CERT_PKEY structure when outputting a

certificate chain instead of an X509 structure.

This makes it easier to enhance code in future and the chain
output functions have access to the CERT_PKEY structure being
used.
This commit is contained in:
Dr. Stephen Henson
2012-01-26 16:00:34 +00:00
parent 4379d0e457
commit c526ed410c
9 changed files with 28 additions and 21 deletions

View File

@@ -3177,7 +3177,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;
}