[#SSL_SESSION_set_cipher] = SSL_SESSION_set_cipher :mrdocs: Associate a cipher suite with an SSL_SESSION (for example when building a PSK session). == Synopsis Declared in `<openssl/ssl.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int SSL_SESSION_set_cipher( xref:SSL_SESSION.adoc[SSL_SESSION]* s, xref:SSL_CIPHER.adoc[SSL_CIPHER] const* cipher); ---- == Return Value 1 on success, or 0 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *s* | Session to update. | *cipher* | Cipher suite to store on `s.` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#