Use centralized hasher names in pki utility
This commit is contained in:
@@ -94,8 +94,8 @@ static int self()
|
||||
}
|
||||
continue;
|
||||
case 'g':
|
||||
digest = get_digest(arg);
|
||||
if (digest == HASH_UNKNOWN)
|
||||
digest = enum_from_name(hash_algorithm_short_names, arg);
|
||||
if (digest == -1)
|
||||
{
|
||||
error = "invalid --digest type";
|
||||
goto usage;
|
||||
|
||||
Reference in New Issue
Block a user