From 344ce83a10fc6dea31a3d8fc3ba6c578f3efa742 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sat, 12 Apr 2008 09:48:14 +0000 Subject: added key/salt options blanking to all other tools --- anyrtpproxy/options.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'anyrtpproxy/options.cpp') diff --git a/anyrtpproxy/options.cpp b/anyrtpproxy/options.cpp index 6ddd9dc..bdddf75 100644 --- a/anyrtpproxy/options.cpp +++ b/anyrtpproxy/options.cpp @@ -112,17 +112,18 @@ Options::~Options() i++; \ } -#define PARSE_HEXSTRING_PARAM(SHORT, LONG, VALUE) \ +#define PARSE_HEXSTRING_PARAM_SEC(SHORT, LONG, VALUE) \ else if(str == SHORT || str == LONG) \ { \ if(argc < 1 || argv[i+1][0] == '-') \ return false; \ VALUE = Buffer(std::string(argv[i+1])); \ + for(size_t j=0; j < strlen(argv[i+1]); ++j) \ + argv[i+1][j] = '#'; \ argc--; \ i++; \ } - #define PARSE_CSLIST_PARAM(SHORT, LONG, LIST) \ else if(str == SHORT || str == LONG) \ { \ -- cgit v1.2.3