Change ssl_sigalgs_build() to perform sigalg list selection.
authorjsing <jsing@openbsd.org>
Sun, 27 Jun 2021 17:59:17 +0000 (17:59 +0000)
committerjsing <jsing@openbsd.org>
Sun, 27 Jun 2021 17:59:17 +0000 (17:59 +0000)
commitc4b0c3ce36f2d5ac2132de87823d28de2ad5e331
tree539b8a8ca151bd00a95b0251802c1bdc5f4c8483
parentdd9cc97dc57dc8cd11cfeabfe41fae0f79ee576a
Change ssl_sigalgs_build() to perform sigalg list selection.

Rather that doing sigalg list selection at every call site, pass in the
appropriate TLS version and have ssl_sigalgs_build() perform the sigalg
list selection itself. This reduces code duplication, simplifies the
calling code and is the first step towards internalising the sigalg lists.

ok tb@
lib/libssl/ssl_sigalgs.c
lib/libssl/ssl_sigalgs.h
lib/libssl/ssl_srvr.c
lib/libssl/ssl_tlsext.c