hasher_algorithm_from_integrity() optionally returns truncation length
This commit is contained in:
@@ -851,7 +851,8 @@ int main(int argc, char **argv)
|
||||
{
|
||||
usage("invalid algorithm specified");
|
||||
}
|
||||
hash = hasher_algorithm_from_integrity(token->algorithm);
|
||||
hash = hasher_algorithm_from_integrity(token->algorithm,
|
||||
NULL);
|
||||
if (hash == OID_UNKNOWN)
|
||||
{
|
||||
usage("invalid algorithm specified");
|
||||
|
||||
Reference in New Issue
Block a user