#ifndef FT_SSL_OPT_H #define FT_SSL_OPT_H #include #include #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 #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 #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