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. --- scripts/crypt_burn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/crypt_burn.c') diff --git a/scripts/crypt_burn.c b/scripts/crypt_burn.c index 1f1536ae7..c7990edc4 100644 --- a/scripts/crypt_burn.c +++ b/scripts/crypt_burn.c @@ -47,7 +47,7 @@ int main(int argc, char *argv[]) limit = atoi(argv[2]); } - token = proposal_get_token(argv[1], strlen(argv[1])); + token = proposal_get_token(argv[1]); if (!token) { fprintf(stderr, "algorithm '%s' unknown!\n", argv[1]); -- cgit v1.2.3 From 4c57c6306235e566f1738cfb7edf582e824b31c6 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 13 Sep 2012 14:22:08 +0200 Subject: Added possibility to register custom proposal keywords Keyword lookup and registration are handled via the new lib->proposal object. --- scripts/crypt_burn.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'scripts/crypt_burn.c') diff --git a/scripts/crypt_burn.c b/scripts/crypt_burn.c index c7990edc4..449364a1a 100644 --- a/scripts/crypt_burn.c +++ b/scripts/crypt_burn.c @@ -15,7 +15,6 @@ #include #include -#include int main(int argc, char *argv[]) { @@ -47,7 +46,7 @@ int main(int argc, char *argv[]) limit = atoi(argv[2]); } - token = proposal_get_token(argv[1]); + token = lib->proposal->get_token(lib->proposal, argv[1]); if (!token) { fprintf(stderr, "algorithm '%s' unknown!\n", argv[1]); -- cgit v1.2.3