aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/lexparser.h
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2007-11-16 20:23:29 +0000
committerAndreas Steffen <andreas.steffen@strongswan.org>2007-11-16 20:23:29 +0000
commitb073aada2336f891de117520fc92df106f92924c (patch)
tree985bbcb1ff2b2840a215dedfd11a9331192e162a /src/libstrongswan/utils/lexparser.h
parente101f162abba82d4713d68721d911d5cbd772201 (diff)
downloadstrongswan-b073aada2336f891de117520fc92df106f92924c.tar.bz2
strongswan-b073aada2336f891de117520fc92df106f92924c.tar.xz
search : delimiter in ipsec.secrets entries from the rear
Diffstat (limited to 'src/libstrongswan/utils/lexparser.h')
-rw-r--r--src/libstrongswan/utils/lexparser.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/libstrongswan/utils/lexparser.h b/src/libstrongswan/utils/lexparser.h
index e3c2c4c70..db89ae2d2 100644
--- a/src/libstrongswan/utils/lexparser.h
+++ b/src/libstrongswan/utils/lexparser.h
@@ -17,6 +17,8 @@
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
+ *
+ * RCSID $Id$
*/
#include <library.h>
@@ -32,11 +34,16 @@ bool eat_whitespace(chunk_t *src);
bool match(const char *pattern, const chunk_t *ch);
/**
- * @brief Extracts a token ending with a given termination symbol
+ * @brief Extracts a token ending with the first occurence a given termination symbol
*/
bool extract_token(chunk_t *token, const char termination, chunk_t *src);
/**
+ * @brief Extracts a token ending with the last occurence a given termination symbol
+ */
+bool extract_last_token(chunk_t *token, const char termination, chunk_t *src);
+
+/**
* @brief Fetches a new text line terminated by \n or \r\n
*/
bool fetchline(chunk_t *src, chunk_t *line);