.\" Man page generated from reStructuredText. . .TH "TSSSLSESSION" "3ts" "Dec 06, 2020" "8.0" "Apache Traffic Server" .SH NAME TSSslSession \- TSSslSession API function . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .SH SYNOPSIS .sp \fI#include \fP .INDENT 0.0 .TP .B TSSslSession TSSslSessionGet(const TSSslSessionID *\fI\ sessionid\fP) .UNINDENT .INDENT 0.0 .TP .B int TSSslSessionGetBuffer(const TSSslSessionID *\fI\ sessionid\fP, char *\fI\ buffer\fP, int *\fI\ len_ptr\fP) .UNINDENT .INDENT 0.0 .TP .B TSReturnCode TSSslSessionInsert(const TSSslSessionID *\fI\ sessionid\fP, TSSslSession\fI\ addSession\fP) .UNINDENT .INDENT 0.0 .TP .B TSReturnCode TSSslSessionRemove(const TSSslSessionID *\fI\ sessionid\fP) .UNINDENT .INDENT 0.0 .TP .B void TSSslTicketKeyUpdate(char *\fI\ ticketData\fP, int\fI\ ticketDataLength\fP) .UNINDENT .SH DESCRIPTION .sp These functions work with the internal ATS session cache. These functions are only useful if the ATS internal session cache is enabled by setting \fBproxy.config.ssl.session_cache\fP has been set to 2. .sp These functions tend to be used with the \fBTS_SSL_SESSION_HOOK\fP\&. .sp The functions work with the \fBTSSslSessionID\fP object to identify sessions to retrieve, insert, or delete. .sp The functions also work with the \fBTSSslSession\fP object which can be cast to a pointer to the openssl SSL_SESSION object. .sp These functions perform the appropriate locking on the session cache to avoid errors. .sp The \fI\%TSSslSessionGet()\fP and \fI\%TSSslSessionGetBuffer()\fP functions retrieve the \fBTSSslSession\fP object that is identifed by the \fBTSSslSessionID\fP object. If there is no matching sesion object, \fI\%TSSslSessionGet()\fP returns NULL and \fI\%TSSslSessionGetBuffer()\fP returns 0. .sp \fI\%TSSslSessionGetBuffer()\fP returns the session information serialized in a buffer that can be shared between processes. When the function is called len_ptr should point to the amount of space available in the buffer parameter. The function returns the amount of data really needed to encode the session. len_ptr is updated with the amount of data actually stored in the buffer. .sp \fI\%TSSslSessionInsert()\fP inserts the session specified by the addSession parameter into the ATS session cache under the sessionid key. If there is already an entry in the cache for the session id key, it is first removed before the new entry is added. .sp \fI\%TSSslSessionRemove()\fP removes the session entry from the session cache that is keyed by sessionid. .sp \fI\%TSSslTicketKeyUpdate()\fP updates the running ATS process to use a new set of Session Ticket Encryption keys. This behaves the same way as updating the session ticket encrypt key file with new data and reloading the current ATS process. However, this API does not require writing session ticket encryption keys to disk. .sp If both the ticket key files and \fI\%TSSslTicketKeyUpdate()\fP are used to update session ticket encryption keys, ATS will use the most recent update reguarless if whether it was made by file and configuration reload or API. .SH COPYRIGHT 2020, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .