[#SSL_alloc_buffers]
= SSL&lowbar;alloc&lowbar;buffers
:mrdocs:

Allocate (or keep) the read and write record buffers for an SSL connection&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;alloc&lowbar;buffers(xref:SSL.adoc[SSL]* ssl);
----

== Description

Useful with SSL&lowbar;MODE&lowbar;RELEASE&lowbar;BUFFERS to preallocate after SSL&lowbar;free&lowbar;buffers(), or with custom CRYPTO&lowbar;set&lowbar;mem&lowbar;functions() allocators&period; Automatic reallocation on I&sol;O still occurs if buffers were freed&period;

== Return Value

1 if the buffers are allocated (or were already allocated), or 0 on allocation failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| SSL connection whose buffers should be preallocated (always succeeds for QUIC)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
