blob: 98f9745cd80b663709905c5b4cffd70bc00313ec [file] [log] [blame]
Eric Biggers431c67b2018-06-27 15:01:06 -07001/* SPDX-License-Identifier: GPL-2.0+ */
2#ifndef COMMANDS_H
3#define COMMANDS_H
4
5#include <stdio.h>
6
7#include "util.h"
8
9struct fsverity_command;
10
11void usage(const struct fsverity_command *cmd, FILE *fp);
12
13int fsverity_cmd_enable(const struct fsverity_command *cmd,
14 int argc, char *argv[]);
Eric Biggers25b59452018-07-27 10:47:02 -070015int fsverity_cmd_measure(const struct fsverity_command *cmd,
16 int argc, char *argv[]);
Eric Biggersc67b06a2019-05-20 17:03:46 -070017int fsverity_cmd_sign(const struct fsverity_command *cmd,
18 int argc, char *argv[]);
19
20bool parse_block_size_option(const char *arg, u32 *size_ptr);
21u32 get_default_block_size(void);
22bool parse_salt_option(const char *arg, u8 **salt_ptr, u32 *salt_size_ptr);
Eric Biggers431c67b2018-06-27 15:01:06 -070023
24#endif /* COMMANDS_H */