Rewrite compression and group checks.
authorDr. Stephen Henson <steve@openssl.org>
Sun, 24 Sep 2017 00:45:27 +0000 (01:45 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 26 Sep 2017 12:00:26 +0000 (13:00 +0100)
commit4a1b42801997f3083211a24592d1a691a0747250
tree6f74107766d7a9a30ad8f32a9a09dd8b22f27920
parent612f9d2227897a3dc76c9dc74a8c30aa1dc7b5a1
Rewrite compression and group checks.

Replace existing compression and groups check with two functions.

tls1_check_pkey_comp() checks a keys compression algorithms is consistent
with extensions.

tls1_check_group_id() checks is a group is consistent with extensions
and preferences.

Rename tls1_ec_nid2curve_id() to tls1_nid2group_id() and make it static.

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