Path: blob/main/crypto/openssl/apps/include/function.h
101836 views
/*1* Copyright 2019-2020 The OpenSSL Project Authors. All Rights Reserved.2*3* Licensed under the Apache License 2.0 (the "License"). You may not use4* this file except in compliance with the License. You can obtain a copy5* in the file LICENSE in the source distribution or at6* https://www.openssl.org/source/license.html7*/89#ifndef OSSL_APPS_FUNCTION_H10#define OSSL_APPS_FUNCTION_H1112#include <openssl/lhash.h>13#include "opt.h"1415#define DEPRECATED_NO_ALTERNATIVE "unknown"1617typedef enum FUNC_TYPE {18FT_none,19FT_general,20FT_md,21FT_cipher,22FT_pkey,23FT_md_alg,24FT_cipher_alg25} FUNC_TYPE;2627typedef struct function_st {28FUNC_TYPE type;29const char *name;30int (*func)(int argc, char *argv[]);31const OPTIONS *help;32const char *deprecated_alternative;33const char *deprecated_version;34} FUNCTION;3536DEFINE_LHASH_OF_EX(FUNCTION);3738/* Structure to hold the number of columns to be displayed and the39* field width used to display them.40*/41typedef struct {42int columns;43int width;44} DISPLAY_COLUMNS;4546void calculate_columns(FUNCTION *functions, DISPLAY_COLUMNS *dc);4748#endif495051