[#SSL_CTX_set_tlsext_max_fragment_length]
= SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;max&lowbar;fragment&lowbar;length
:mrdocs:

Set the maximum fragment length mode advertised by an SSL context (RFC 6066)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;CTX&lowbar;set&lowbar;tlsext&lowbar;max&lowbar;fragment&lowbar;length(
    xref:SSL_CTX.adoc[SSL&lowbar;CTX]* ctx,
    uint8&lowbar;t mode);
----

== Return Value

1 on success, or 0 if `mode` is invalid&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ctx*
| SSL context to configure&period;
| *mode*
| TLSEXT&lowbar;max&lowbar;fragment&lowbar;length&lowbar;&ast; constant, or TLSEXT&lowbar;max&lowbar;fragment&lowbar;length&lowbar;DISABLED&period;
|===


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