diff options
author | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 13:39:33 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2012-09-13 15:44:01 +0200 |
commit | 995875210acb70ba2b12c9368ce892325abb64f2 (patch) | |
tree | e8bc8ce7dcb96885c98fbe89b2797cf245e2de06 /src/scepclient/scepclient.c | |
parent | 1962e12fd3a0d80c56facf508ec8ee9ea2c92dc8 (diff) | |
download | strongswan-995875210acb70ba2b12c9368ce892325abb64f2.tar.bz2 strongswan-995875210acb70ba2b12c9368ce892325abb64f2.tar.xz |
Removed len argument from proposal_get_token()
Also use enumerators instead of lexparser.h to parse proposal strings.
Diffstat (limited to 'src/scepclient/scepclient.c')
-rw-r--r-- | src/scepclient/scepclient.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scepclient/scepclient.c b/src/scepclient/scepclient.c index 76d639a84..2444080a1 100644 --- a/src/scepclient/scepclient.c +++ b/src/scepclient/scepclient.c @@ -828,7 +828,7 @@ int main(int argc, char **argv) if (strcaseeq("enc", type)) { - token = proposal_get_token(algo, strlen(algo)); + token = proposal_get_token(algo); if (token == NULL || token->type != ENCRYPTION_ALGORITHM) { usage("invalid algorithm specified"); @@ -846,7 +846,7 @@ int main(int argc, char **argv) { hash_algorithm_t hash; - token = proposal_get_token(algo, strlen(algo)); + token = proposal_get_token(algo); if (token == NULL || token->type != INTEGRITY_ALGORITHM) { usage("invalid algorithm specified"); |