Fix tls1_set_sigalgs() length calculation
authorMatt Caswell <matt@openssl.org>
Tue, 10 Jan 2017 14:23:02 +0000 (14:23 +0000)
committerMatt Caswell <matt@openssl.org>
Tue, 10 Jan 2017 23:02:51 +0000 (23:02 +0000)
commit7a531ee460ef517717105438a8b418dcc85c19b4
tree13dafa2d31bbc1a5f557e1f8e5146f24dd34814f
parent42ab22300074eeaf1283ccb983ae0b3830758293
Fix tls1_set_sigalgs() length calculation

The length passed to tls1_set_sigalgs() is a multiple of two and there are
two char entries in the list for each sigalg. When we set
client_sigalgslen or conf_sigalgslen this is the number of ints in the list
where there is one entry per sigalg (i.e. half the length of the list passed
to the function).

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2157)
ssl/t1_lib.c