Commit 8373deab authored by David Benjamin's avatar David Benjamin Committed by Commit Bot

Enable BoringSSL handshake config shedding.

Trim a bit of memory use where we can.

Bug: none
Change-Id: I632d712e869f59f27ac0522d0bf33dc32b9a91f2
Reviewed-on: https://chromium-review.googlesource.com/1045225
Commit-Queue: Steven Valdez <svaldez@chromium.org>
Reviewed-by: default avatarSteven Valdez <svaldez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#556452}
parent 2053004c
...@@ -966,6 +966,7 @@ int SSLClientSocketImpl::Init() { ...@@ -966,6 +966,7 @@ int SSLClientSocketImpl::Init() {
// optimization. See https://crbug.com/boringssl/123. // optimization. See https://crbug.com/boringssl/123.
SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely); SSL_set_renegotiate_mode(ssl_.get(), ssl_renegotiate_freely);
SSL_set_shed_handshake_config(ssl_.get(), 1);
return OK; return OK;
} }
......
...@@ -216,6 +216,7 @@ SSLServerContextImpl::SocketImpl::SocketImpl( ...@@ -216,6 +216,7 @@ SSLServerContextImpl::SocketImpl::SocketImpl(
weak_factory_(this) { weak_factory_(this) {
ssl_.reset(SSL_new(context_->ssl_ctx_.get())); ssl_.reset(SSL_new(context_->ssl_ctx_.get()));
SSL_set_app_data(ssl_.get(), this); SSL_set_app_data(ssl_.get(), this);
SSL_set_shed_handshake_config(ssl_.get(), 1);
} }
SSLServerContextImpl::SocketImpl::~SocketImpl() { SSLServerContextImpl::SocketImpl::~SocketImpl() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment