sha1_file: convert check_sha1_signature to struct object_id