From 995875210acb70ba2b12c9368ce892325abb64f2 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 13 Sep 2012 13:39:33 +0200 Subject: Removed len argument from proposal_get_token() Also use enumerators instead of lexparser.h to parse proposal strings. --- src/scepclient/scepclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/scepclient/scepclient.c') 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"); -- cgit v1.2.3