summaryrefslogtreecommitdiff
path: root/anyrtpproxy/options.cpp
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-04-12 09:48:14 +0000
committerChristian Pointner <equinox@anytun.org>2008-04-12 09:48:14 +0000
commit344ce83a10fc6dea31a3d8fc3ba6c578f3efa742 (patch)
tree6a45d1e680d462b403512fea2e6c7a78ac2806d0 /anyrtpproxy/options.cpp
parentKey and Salt Option get blanked out after parsing options (diff)
added key/salt options blanking to all other tools
Diffstat (limited to 'anyrtpproxy/options.cpp')
-rw-r--r--anyrtpproxy/options.cpp5
1 files changed, 3 insertions, 2 deletions
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) \
{ \