Removed len argument from proposal_get_token()
Also use enumerators instead of lexparser.h to parse proposal strings.
This commit is contained in:
1 parent
1962e12fd3
commit
995875210a
6 files changed
+30
-32
No files matched your search
@@ -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");
|
||||
|
||||
Reference in new issue
Block a user