summaryrefslogtreecommitdiff
path: root/ssl/record/recordmethod.h
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-10-21 16:12:31 +0100
committerMatt Caswell <matt@openssl.org>2022-10-27 10:52:52 +0100
commit7eb39ecb299db3eade11946f9385f5dee1d458d3 (patch)
treed877abd221285d0a959b7766982e5e00ca31d62b /ssl/record/recordmethod.h
parent225f94e818d9f8cb9e272fb9128b4b0ef88a0cbc (diff)
downloadopenssl-new-7eb39ecb299db3eade11946f9385f5dee1d458d3.tar.gz
Make SSL_alloc_buffers() and SSL_free_buffers() work again
Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Hugo Landau <hlandau@openssl.org> (Merged from https://github.com/openssl/openssl/pull/19472)
Diffstat (limited to 'ssl/record/recordmethod.h')
-rw-r--r--ssl/record/recordmethod.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/ssl/record/recordmethod.h b/ssl/record/recordmethod.h
index 3bbca66fed..70e6e4d26a 100644
--- a/ssl/record/recordmethod.h
+++ b/ssl/record/recordmethod.h
@@ -320,6 +320,18 @@ struct ossl_record_method_st {
* Increment the record sequence number
*/
int (*increment_sequence_ctr)(OSSL_RECORD_LAYER *rl);
+
+ /*
+ * Allocate read or write buffers. Does nothing if already allocated.
+ * Assumes default buffer length and 1 pipeline.
+ */
+ int (*alloc_buffers)(OSSL_RECORD_LAYER *rl);
+
+ /*
+ * Free read or write buffers. Fails if there is pending read or write
+ * data. Buffers are automatically reallocated on next read/write.
+ */
+ int (*free_buffers)(OSSL_RECORD_LAYER *rl);
};