typedef bool (*tool_func_t)(const std::vector<std::string> &args);
struct Tool {
const char *name;
tool_func_t func;
};
static const Tool kTools[] = {
{ "ciphers", Ciphers },
{ "client", Client },
{ "isfips", IsFIPS },
{ "generate-ech", GenerateECH},
{ "generate-ed25519", GenerateEd25519Key },
{ "genrsa", GenerateRSAKey },
{ "md5sum", MD5Sum },
{ "pkcs12", DoPKCS12 },
{ "rand", Rand },
{ "s_client", Client },
{ "s_server", Server },
{ "server", Server },
{ "sha1sum", SHA1Sum },
{ "sha224sum", SHA224Sum },
{ "sha256sum", SHA256Sum },
{ "sha384sum", SHA384Sum },
{ "sha512sum", SHA512Sum },
{ "sha512256sum", SHA512256Sum },
{ "sign", Sign },
{ "speed", Speed },
{ "sm3sum", SM3Sum },
{ "", nullptr },
};