Move new_cipher and new_session to SSL_HANDSHAKE. This lets us trim another two pointers of per-connection state. Change-Id: I2145d529bc25b7e24a921d01e82ee99f2c98867c Reviewed-on: https://boringssl-review.googlesource.com/13804 Reviewed-by: David Benjamin <davidben@google.com> Commit-Queue: David Benjamin <davidben@google.com> CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
diff --git a/ssl/ssl_lib.c b/ssl/ssl_lib.c index 57178cf..517ddbb 100644 --- a/ssl/ssl_lib.c +++ b/ssl/ssl_lib.c
@@ -2496,10 +2496,11 @@ } const SSL_CIPHER *SSL_get_pending_cipher(const SSL *ssl) { - if (!SSL_in_init(ssl)) { + SSL_HANDSHAKE *hs = ssl->s3->hs; + if (hs == NULL) { return NULL; } - return ssl->s3->tmp.new_cipher; + return hs->new_cipher; } void SSL_set_retain_only_sha256_of_client_certs(SSL *ssl, int enabled) {