Move 'shared_sigalgs' from cert_st to ssl_st
authorBenjamin Kaduk <bkaduk@akamai.com>
Thu, 13 Jun 2019 19:26:12 +0000 (12:26 -0700)
committerBenjamin Kaduk <kaduk@mit.edu>
Wed, 26 Jun 2019 17:20:55 +0000 (12:20 -0500)
commit29948ac80c1388cfeb0bd64539ac1fa6e0bb8990
tree35f57aacdf87203d995e8d78b53ea874fbe5ee84
parent6f34d7bc7d0c7fcd86c6f2772f26e42c925d8505
Move 'shared_sigalgs' from cert_st to ssl_st

It was only ever in cert_st because ssl_st was a public structure
and could not be modified without breaking the API.  However, both
structures are now opaque, and thus we can freely change their layout
without breaking applications.  In this case, keeping the shared
sigalgs in the SSL object prevents complications wherein they would
inadvertently get cleared during SSL_set_SSL_CTX() (e.g., as run
during a cert_cb).

Fixes #9099

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9157)
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c