Skip to content

Commit bd2393b

Browse files
authored
Add deprecation warning to no_tls policy struct (#877)
Mark no_tls with [[deprecated]] attribute to guide users toward require_tls or optional_tls for production deployments.
1 parent 088fde2 commit bd2393b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/kcenon/network/policy/tls_policy.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ namespace kcenon::network::policy {
5050
* messaging_client<tcp_protocol, no_tls> plain_client;
5151
* \endcode
5252
*/
53-
struct no_tls {
53+
struct [[deprecated("Use require_tls or optional_tls for production deployments")]] no_tls {
5454
static constexpr bool enabled = false;
5555
};
5656

0 commit comments

Comments
 (0)