2 * Copyright 2019 The OpenSSL Project Authors. All Rights Reserved.
4 * Licensed under the Apache License 2.0 (the "License"). You may not use
5 * this file except in compliance with the License. You can obtain a copy
6 * in the file LICENSE in the source distribution or at
7 * https://www.openssl.org/source/license.html
10 #ifndef APPS_FUNCTION_H
11 # define APPS_FUNCTION_H
13 # include <openssl/lhash.h>
16 typedef enum FUNC_TYPE {
17 FT_none, FT_general, FT_md, FT_cipher, FT_pkey,
18 FT_md_alg, FT_cipher_alg
21 typedef struct function_st {
24 int (*func)(int argc, char *argv[]);
28 DEFINE_LHASH_OF(FUNCTION);
30 /* Structure to hold the number of columns to be displayed and the
31 * field width used to display them.
38 void calculate_columns(FUNCTION *functions, DISPLAY_COLUMNS *dc);