This commit is contained in:
John
2022-04-17 17:37:23 +02:00
parent 2fd1d9bde3
commit 49b6d53d3b
+5
View File
@@ -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;