hasher_algorithm_from_integrity() optionally returns truncation length

This commit is contained in:
Tobias Brunner
2012-06-25 16:35:06 +02:00
parent 73d032e412
commit 903093d439
3 changed files with 45 additions and 7 deletions
+2 -1
View File
@@ -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");