[#SSL_SESSION_set1_id] = SSL_SESSION_set1_id :mrdocs: Set the session ID bytes stored on an SSL_SESSION. == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_SESSION_set1_id( xref:SSL_SESSION.adoc[SSL_SESSION]* s, unsigned char const* sid, unsigned int sid_len); ---- == Return Value 1 on success, or 0 on failure (for example if `sid_len` is too large). == Parameters [cols="1,4"] |=== | Name| Description | *s* | Session to update. | *sid* | Session ID bytes to copy. | *sid_len* | Length of `sid` (must not exceed SSL_MAX_SSL_SESSION_ID_LENGTH). |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#