[#SSL_export_keying_material]
= SSL&lowbar;export&lowbar;keying&lowbar;material
:mrdocs:

Export keying material derived from the connection&apos;s exporter secret&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;export&lowbar;keying&lowbar;material(
    xref:SSL.adoc[SSL]* s,
    unsigned char* out,
    size&lowbar;t olen,
    char const* label,
    size&lowbar;t llen,
    unsigned char const* context,
    size&lowbar;t contextlen,
    int use&lowbar;context);
----

== Return Value

1 on success, or 0 or &hyphen;1 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| SSL connection to export from&period;
| *out*
| Buffer that receives `olen` bytes of keying material&period;
| *olen*
| Number of bytes to write to `out&period;`
| *label*
| Application&hyphen;specific label&period;
| *llen*
| Length of `label` in bytes&period;
| *context*
| Optional application context bytes&period;
| *contextlen*
| Length of `context` in bytes&period;
| *use&lowbar;context*
| Nonzero to include `context&semi;` zero to omit it&period;
|===


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