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 18:00:27 +0000 (13:00 -0500)
commit915430a0a9b3602017689cdd65934b3582ea1e01
treefcc62f463989e4232ecf2d9d7cde7002783758c9
parent572492aaf0657fd40c96b889966350ce20d310b4
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)

(cherry picked from commit 29948ac80c1388cfeb0bd64539ac1fa6e0bb8990)
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_locl.h
ssl/t1_lib.c