Added possibility to register custom proposal keywords
Keyword lookup and registration are handled via the new lib->proposal object.
This commit is contained in:
1 parent
995875210a
commit
4c57c63062
9 files changed
+187
-21
No files matched your search
@@ -828,7 +828,7 @@ int main(int argc, char **argv)
|
||||
|
||||
if (strcaseeq("enc", type))
|
||||
{
|
||||
token = proposal_get_token(algo);
|
||||
token = lib->proposal->get_token(lib->proposal, 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);
|
||||
token = lib->proposal->get_token(lib->proposal, algo);
|
||||
if (token == NULL || token->type != INTEGRITY_ALGORITHM)
|
||||
{
|
||||
usage("invalid algorithm specified");
|
||||
|
||||
Reference in new issue
Block a user