diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-14 20:59:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-14 20:59:23 +0400 |
commit | 2d81eded1e64737d2ecca278efc2a84be7dbd8f5 (patch) | |
tree | f9eab401bca807461a76911bcf0199bdb27f8e6d /src/protocol.h | |
parent | ea68f17ec2f7bffbb8db9000a05d7208fb611204 (diff) | |
download | rspamd-2d81eded1e64737d2ecca278efc2a84be7dbd8f5.tar.gz rspamd-2d81eded1e64737d2ecca278efc2a84be7dbd8f5.zip |
* Initial approach to RESTful controller.
Fix security issues in fstring handling.
Diffstat (limited to 'src/protocol.h')
-rw-r--r-- | src/protocol.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/protocol.h b/src/protocol.h index de6d0ea03..72460940f 100644 --- a/src/protocol.h +++ b/src/protocol.h @@ -58,6 +58,14 @@ struct custom_command { }; /** + * Find a character in command in and return pointer to the first part of the string, in is modified to point to the second part of string + * @param in f_str_t input + * @param c separator character + * @return pointer to the first part of string or NULL if there is no separator found + */ +gchar* separate_command (f_str_t * in, gchar c); + +/** * Read one line of user's input for specified task * @param task task object * @param line line of user's input |