.\" Man page generated from reStructuredText. . . .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 .. .TH "TSSSLSECRET" "3ts" "Jun 22, 2023" "9.2" "Apache Traffic Server" .SH NAME TSSslSecret \- TSSslSecret API function .SH TSSSLSECRETSET .sp Set the data associated with a secret name specified in the config. .SS Synopsis .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSSslSecretSet(const char *secret_name, int secret_name_length, const char *secret_data, int secret_data_len) .UNINDENT .SS Description .sp \fI\%TSSslSecretSet()\fP updates the current secret map. Generally the secret name corresponds to the name of a certificate or a key. Future creation of SSL_CTX objects that use the secret will use the newly specified data. It can be useful to call this function from the \fI\%TS_LIFECYCLE_SSL_SECRET_HOOK\fP\&. .SH TSSSLSECRETGET .sp Get the data associated with a secret name specified in the config. .SS Synopsis .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSSslSecretGet(const char *secret_name, int secret_name_length, const char **secret_data_return, int *secret_data_len) .UNINDENT .SS Description .sp \fI\%TSSslSecretGet()\fP fetches the named secret from the current secret map. TS_ERROR is returned if there is no entry for the secret. .SH TSSSLSECRETUPDATE .sp Tell Traffic Server to update the SSL objects dependent on the secret. .SS Synopsis .INDENT 0.0 .INDENT 3.5 .sp .nf .ft C #include .ft P .fi .UNINDENT .UNINDENT .INDENT 0.0 .TP .B \fI\%TSReturnCode\fP TSSslSecretUpdate(const char *secret_name, int secret_name_length) .UNINDENT .SS Description .sp \fI\%TSSslSecretUpdate()\fP causes Traffic Server to update the SSL objects that depend on the specified secret. This enables a plugin to look for multiple secret updates and make calls to \fI\%TSSslSecretSet()\fP to update the secret table. Then once everything is updated call \fI\%TSSslSecretUpdate()\fP to update the SSL objects with a consistent updated set of secrets. .SH COPYRIGHT 2023, dev@trafficserver.apache.org .\" Generated by docutils manpage writer. .