diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:50:52 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:50:52 +0200 |
commit | 7d786057b4e62bb46fbc33fea6063abc9a13bc66 (patch) | |
tree | 3d35a16fc979238bf7aa6f8b31d08f221eb251dd /src/libstrongswan/utils/enumerator.h | |
parent | bc6ec4de7314885d2725bccc186a527bda37c2bc (diff) | |
parent | 08ad639f327d2e5445d7274b7705093704151f35 (diff) | |
download | strongswan-7d786057b4e62bb46fbc33fea6063abc9a13bc66.tar.bz2 strongswan-7d786057b4e62bb46fbc33fea6063abc9a13bc66.tar.xz |
Merge branch 'custom-crypto'
This provides plugins with an interface to register keywords for
proposals (e.g. when parsing the esp and ike options from ipsec.conf)
and the possibility to register identifiers for kernel algorithms.
It is based on patches contributed by Nanoteq Pty Ltd.
Diffstat (limited to 'src/libstrongswan/utils/enumerator.h')
-rw-r--r-- | src/libstrongswan/utils/enumerator.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libstrongswan/utils/enumerator.h b/src/libstrongswan/utils/enumerator.h index 12b5712ae..8c3d70173 100644 --- a/src/libstrongswan/utils/enumerator.h +++ b/src/libstrongswan/utils/enumerator.h @@ -93,7 +93,7 @@ enumerator_t *enumerator_create_single(void *item, void (*cleanup)(void *item)); * @param path path of the directory * @return the directory enumerator, NULL on failure */ -enumerator_t* enumerator_create_directory(char *path); +enumerator_t* enumerator_create_directory(const char *path); /** * Create an enumerator over tokens of a string. @@ -106,7 +106,8 @@ enumerator_t* enumerator_create_directory(char *path); * @param trim characters to trim from tokens * @return enumerator over char* tokens */ -enumerator_t* enumerator_create_token(char *string, char *sep, char *trim); +enumerator_t* enumerator_create_token(const char *string, const char *sep, + const char *trim); /** * Creates an enumerator which enumerates over enumerated enumerators :-). |