Reorder extensions to put SigAlgs last
authorTodd Short <tshort@akamai.com>
Thu, 13 Jul 2017 14:47:16 +0000 (10:47 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 16 Aug 2017 16:58:00 +0000 (11:58 -0500)
commite7f235768d0c218657d06db625478dbdf4e1290f
treed4a91af3d627b6cca8afaf7801264ba248c1e87c
parent7d51fd8aa1dca4a0b2bc7b28c74174695bfc9113
Reorder extensions to put SigAlgs last

WebSphere application server cannot handle having an empty
extension (e.g. EMS/EtM) as the last extension in a client hello.
This moves the SigAlgs extension last (before any padding) for TLSv1.2
to avoid this issue.

Force the padding extension to a minimum length of 1.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3927)
ssl/t1_lib.c