Added possibility to register custom proposal keywords

Keyword lookup and registration are handled via the new lib->proposal object.
This commit is contained in:
Tobias Brunner committed 2012-09-13 15:44:46 +02:00
1 parent 995875210a
commit 4c57c63062
9 files changed
+187 -21

No files matched your search

+1 -2
View File
@@ -15,7 +15,6 @@
#include <stdio.h>
#include <library.h>
#include <crypto/proposal/proposal_keywords.h>
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]);