aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorTodd Short <tshort@akamai.com>2017-01-13 11:00:26 -0500
committerRich Salz <rsalz@openssl.org>2017-07-26 11:42:17 -0400
commita58eb06d527c86492d4205feeb0e20bf19a1181d (patch)
tree2a637ed40c13437a2a2b219e667276c8c963f183 /util
parent0a3452520fe4cd6871ae8b7c4199c6d5d4efe912 (diff)
downloadopenssl-a58eb06d527c86492d4205feeb0e20bf19a1181d.tar.gz
Add support to free/allocate SSL buffers
OpenSSL already has the feature of SSL_MODE_RELEASE_BUFFERS that can be set to release the read or write buffers when data has finished reading or writing. OpenSSL will automatically re-allocate the buffers as needed. This can be quite aggressive in terms of memory allocation. This provides a manual mechanism. SSL_free_buffers() will free the data buffers if there's no pending data. SSL_alloc_buffers() will realloc them; but this function is not strictly necessary, as it's still done automatically in the state machine. Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org> (Merged from https://github.com/openssl/openssl/pull/2240)
Diffstat (limited to 'util')
-rw-r--r--util/libssl.num2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libssl.num b/util/libssl.num
index 26a225c4cd..6a93ecb7ff 100644
--- a/util/libssl.num
+++ b/util/libssl.num
@@ -460,3 +460,5 @@ SSL_SESSION_set1_master_key 460 1_1_1 EXIST::FUNCTION:
SSL_SESSION_set_cipher 461 1_1_1 EXIST::FUNCTION:
SSL_SESSION_set_protocol_version 462 1_1_1 EXIST::FUNCTION:
OPENSSL_cipher_name 463 1_1_1 EXIST::FUNCTION:
+SSL_alloc_buffers 464 1_1_1 EXIST::FUNCTION:
+SSL_free_buffers 465 1_1_1 EXIST::FUNCTION: