Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion doc/developer-guide/api/functions/TSSslSecret.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ from the :cpp:enumerator:`TS_LIFECYCLE_SSL_SECRET_HOOK`.
TSSslSecretGet
**************

Get the data associated with a secret name specified in the config.
Get the data associated with a secret name specified in the config. **Note:** this function is deprecated, it is not
thread safe. It will be replaced with a thread-safe function in Release 10.

Synopsis
========
Expand Down
2 changes: 2 additions & 0 deletions include/ts/ts.h
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,8 @@ tsapi TSReturnCode TSSslServerCertUpdate(const char *cert_path, const char *key_

/* Update the transient secret table for SSL_CTX loading */
tsapi TSReturnCode TSSslSecretSet(const char *secret_name, int secret_name_length, const char *secret_data, int secret_data_len);
/* NOTE: TSSslSecretGet() is deprecated, it is not thread-safe. It will be replaced with a thread-safe function
** in Release 10 */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we use TS_DEPRECATED ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TS_MAYBE

tsapi TSReturnCode TSSslSecretGet(const char *secret_name, int secret_name_length, const char **secret_data_return,
int *secret_data_len);

Expand Down