scepclient: Cast OID_UNKNOWN before comparing it to unsigned hash_algorithm_t
clang uses unsigned enums and complains about the always-false -1 check.
This commit is contained in:
@@ -896,7 +896,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
hash = hasher_algorithm_from_integrity(token->algorithm,
|
hash = hasher_algorithm_from_integrity(token->algorithm,
|
||||||
NULL);
|
NULL);
|
||||||
if (hash == OID_UNKNOWN)
|
if (hash == (hash_algorithm_t)OID_UNKNOWN)
|
||||||
{
|
{
|
||||||
usage("invalid algorithm specified");
|
usage("invalid algorithm specified");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user