Extend tls_construct_extensions() to enable passing of a certificate
authorMatt Caswell <matt@openssl.org>
Thu, 1 Dec 2016 15:00:37 +0000 (15:00 +0000)
committerMatt Caswell <matt@openssl.org>
Fri, 6 Jan 2017 10:25:13 +0000 (10:25 +0000)
commit30aeba432c99d2642bec89505fb9922518979214
tree69c6fbbb1094208a7750266a1dfa12c787d67fab
parent71f60ef3376144885384f2b1b3f00c3d54806f38
Extend tls_construct_extensions() to enable passing of a certificate

The Certificate message in TLS1.3 has an extensions block for each
Certificate. Therefore we need to extend tls_construct_extensions() to pass
in the certificate we are working on. We also pass in the position in the
chain (with 0 being the first certificate).

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2020)
ssl/statem/extensions.c
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c
ssl/statem/statem_clnt.c
ssl/statem/statem_locl.h
ssl/statem/statem_srvr.c