33 lines
907 B
C
33 lines
907 B
C
#ifndef FT_SSL_OPT_H
|
|
#define FT_SSL_OPT_H
|
|
|
|
#include <cli.h>
|
|
#include <libft_ssl.h>
|
|
|
|
#include "internal/cli/command.h"
|
|
#include "internal/cli/digest_cmd.h"
|
|
|
|
|
|
/* Forward-declare all digest algo globals */
|
|
#define DIGEST_ALGO(lower, ds, bs) extern const struct digest_algo g_##lower;
|
|
#include <digest_algos.h>
|
|
#undef DIGEST_ALGO
|
|
|
|
static const struct command_descriptor g_commands[] = {
|
|
/* Digest commands */
|
|
#define DIGEST_ALGO(lower, ds, bs) \
|
|
{ #lower, CMD_DIGEST, g_digest_opts, DIGEST_OPT_LEN, &g_##lower, digest_run },
|
|
#include <digest_algos.h>
|
|
#undef DIGEST_ALGO
|
|
/* Cipher commands (not yet implemented) */
|
|
{ "base64", CMD_CIPHER, NULL, 0, NULL, NULL },
|
|
{ "des", CMD_CIPHER, NULL, 0, NULL, NULL },
|
|
{ "des-ecb", CMD_CIPHER, NULL, 0, NULL, NULL },
|
|
{ "des-cbc", CMD_CIPHER, NULL, 0, NULL, NULL },
|
|
/* Sentinel */
|
|
{ NULL, 0, NULL, 0, NULL, NULL }
|
|
};
|
|
|
|
void print_usage(const char *prog);
|
|
|
|
#endif
|