[#SSL_SESSION_set_max_early_data]
= SSL&lowbar;SESSION&lowbar;set&lowbar;max&lowbar;early&lowbar;data
:mrdocs:

Set the maximum early&hyphen;data (0&hyphen;RTT) size advertised for a session&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;SESSION&lowbar;set&lowbar;max&lowbar;early&lowbar;data(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* s,
    uint32&lowbar;t max&lowbar;early&lowbar;data);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| Session to update&period;
| *max&lowbar;early&lowbar;data*
| Maximum early&hyphen;data bytes allowed when resuming `s&period;`
|===


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