From 49b6d53d3bb7268e836ea89b4af3fc92f8736b9f Mon Sep 17 00:00:00 2001 From: John Date: Sun, 17 Apr 2022 17:37:23 +0200 Subject: [PATCH] docs --- src/ebusd/mqtthandler.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index b0b717f4..89981d86 100755 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -126,6 +126,11 @@ static const char* g_keypass = nullptr; //!< client key file password for TLS static bool g_insecure = false; //!< whether to allow insecure TLS connection #endif +/** + * Replace all characters in the string with a space and return a copy of the original string. + * @param arg the string to replace. + * @return a copy of the original string. + */ static char* replaceSecret(char *arg) { char* ret = strdup(arg); int cnt = 0;