26 lines
587 B
C
26 lines
587 B
C
#ifndef FT_SSL_CMD_COMMAND_H
|
|
#define FT_SSL_CMD_COMMAND_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdio.h>
|
|
|
|
#include <cli.h>
|
|
|
|
enum command_category {
|
|
CMD_DIGEST,
|
|
CMD_CIPHER
|
|
};
|
|
|
|
struct command_descriptor {
|
|
const char *name;
|
|
enum command_category category;
|
|
const struct option_descriptor *opts;
|
|
size_t nb_opts;
|
|
const void *impl;
|
|
int (*run)(int argc, char **argv, const struct command_descriptor *self);
|
|
};
|
|
|
|
const struct command_descriptor *find_command(const char *name);
|
|
void print_commands(FILE *out);
|
|
|
|
#endif
|