Good morning,
Quoting Holger Hans Peter Freyther (2014-11-15 03:11:46)
why does this need to go into the DB and not the
configuration
file?
Our first attempt was to do it in the configuration file, but we realized that
vty doesn't have support for strings with spaces. Or did we miss something?
We decided that was easier to add it to the database than to extend vty to parse
strings with " or other way to support spaces.
What is your stand on checking the configured string
for
the right amount of printf placeholders?
You are right, this is not great. After discussing it with ciaby we decided that
might make more sense to do something like:
snprintf(sms_str, len, "%s IMSI: %s Token: %08X Ext: %s"
auth_token_sms_text, subscr->imsi, token, subscr->extension);
So the auth_token_sms_text don't have any placeholders it's just the
introductory text. What do you think?
--
Ruben Pollan |
http://meskio.net/
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
My contact info:
http://meskio.net/crypto.txt
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Nos vamos a Croatan.