[#SSL_SESSION_set1_master_key]
= SSL&lowbar;SESSION&lowbar;set1&lowbar;master&lowbar;key
:mrdocs:

Set the master secret on an SSL session by copying `in&period;`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;SESSION&lowbar;set1&lowbar;master&lowbar;key(
    xref:SSL_SESSION.adoc[SSL&lowbar;SESSION]* sess,
    unsigned char const* in,
    size&lowbar;t len);
----

== Return Value

1 on success, or 0 on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *sess*
| Session whose master key is replaced&period;
| *in*
| Master secret octets&period;
| *len*
| Length of `in` in bytes (must be acceptable for the protocol)&period;
|===


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