[#SSL_CTX_set_record_padding_callback]
= SSL&lowbar;CTX&lowbar;set&lowbar;record&lowbar;padding&lowbar;callback
:mrdocs:

Install a callback that chooses TLS 1&period;3 record padding for connections from a context&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SSL&lowbar;CTX&lowbar;set&lowbar;record&lowbar;padding&lowbar;callback(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    size&lowbar;t(* cb)(xref:SSL.adoc[SSL]*, int, size&lowbar;t, void*));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context whose padding callback is set (copied to new SSL objects by SSL&lowbar;new)&period;
| *cb*
| Callback receiving record `type` and plaintext `len&semi;` returns padding bytes to add (0 for none), or NULL to clear&period;
|===


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