]> git.ipfire.org Git - thirdparty/openssl.git/commit
Separate ca_names handling for client and server
authorMatt Caswell <matt@openssl.org>
Fri, 26 Oct 2018 10:43:19 +0000 (11:43 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 12 Nov 2018 14:29:02 +0000 (14:29 +0000)
commit98732979001dbb59320803713c4c91ba40234250
tree692c033035843ed07030ec5be0e99a14dd9cb9df
parent24ae00388fb9e25af8f94d36b7c191ae90061586
Separate ca_names handling for client and server

SSL(_CTX)?_set_client_CA_list() was a server side only function in 1.1.0.
If it was called on the client side then it was ignored. In 1.1.1 it now
makes sense to have a CA list defined for both client and server (the
client now sends it the the TLSv1.3 certificate_authorities extension).
Unfortunately some applications were using the same SSL_CTX for both
clients and servers and this resulted in some client ClientHellos being
excessively large due to the number of certificate authorities being sent.

This commit seperates out the CA list updated by
SSL(_CTX)?_set_client_CA_list() and the more generic
SSL(_CTX)?_set0_CA_list(). This means that SSL(_CTX)?_set_client_CA_list()
still has no effect on the client side. If both CA lists are set then
SSL(_CTX)?_set_client_CA_list() takes priority.

Fixes #7411

Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/7503)
doc/man3/SSL_CTX_set0_CA_list.pod
doc/man3/SSL_CTX_set_client_CA_list.pod
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/statem/extensions.c
ssl/statem/statem_lib.c
ssl/statem/statem_locl.h
ssl/statem/statem_srvr.c