summaryrefslogtreecommitdiff
path: root/src/usr.bin/openssl/openssl.c
diff options
context:
space:
mode:
authorjsing <>2015-08-22 16:36:05 +0000
committerjsing <>2015-08-22 16:36:05 +0000
commit3d9f323c9126c3921ff102a172c67dfa4975449a (patch)
tree914abdd328ee31b3be41e0883b0af14975b39f57 /src/usr.bin/openssl/openssl.c
parent8aaa3462961697bb402dbd95d36536a55500e050 (diff)
downloadopenbsd-3d9f323c9126c3921ff102a172c67dfa4975449a.tar.gz
openbsd-3d9f323c9126c3921ff102a172c67dfa4975449a.tar.bz2
openbsd-3d9f323c9126c3921ff102a172c67dfa4975449a.zip
Remove all duplicate prototypes for *_main functions (these are already
provided by progs.h). Also, move the FUNCTION type (and flags) into openssl.c since that is the only place of use. Lastly, remove pointless 'extern' from the prototypes and use char **argv instead of char *argv[] (the former is used elsewhere). ok deraadt@ doug@
Diffstat (limited to 'src/usr.bin/openssl/openssl.c')
-rw-r--r--src/usr.bin/openssl/openssl.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/openssl.c b/src/usr.bin/openssl/openssl.c
index 1754b3a107..6d56b00f96 100644
--- a/src/usr.bin/openssl/openssl.c
+++ b/src/usr.bin/openssl/openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: openssl.c,v 1.4 2015/08/19 18:25:31 deraadt Exp $ */ 1/* $OpenBSD: openssl.c,v 1.5 2015/08/22 16:36:05 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -133,6 +133,21 @@
133#include "progs.h" 133#include "progs.h"
134#include "s_apps.h" 134#include "s_apps.h"
135 135
136#define FUNC_TYPE_GENERAL 1
137#define FUNC_TYPE_MD 2
138#define FUNC_TYPE_CIPHER 3
139#define FUNC_TYPE_PKEY 4
140#define FUNC_TYPE_MD_ALG 5
141#define FUNC_TYPE_CIPHER_ALG 6
142
143typedef struct {
144 int type;
145 const char *name;
146 int (*func)(int argc, char **argv);
147} FUNCTION;
148
149DECLARE_LHASH_OF(FUNCTION);
150
136FUNCTION functions[] = { 151FUNCTION functions[] = {
137 152
138 /* General functions. */ 153 /* General functions. */