610f21efb0f63b4f7186e876eb6c277591db54df
[openssl.git] / apps / progs.h
1 /* apps/progs.h */
2 /* automatically generated by progs.pl for openssl.c */
3
4 extern int verify_main(int argc,char *argv[]);
5 extern int asn1parse_main(int argc,char *argv[]);
6 extern int req_main(int argc,char *argv[]);
7 extern int dgst_main(int argc,char *argv[]);
8 extern int dh_main(int argc,char *argv[]);
9 extern int dhparam_main(int argc,char *argv[]);
10 extern int enc_main(int argc,char *argv[]);
11 extern int passwd_main(int argc,char *argv[]);
12 extern int gendh_main(int argc,char *argv[]);
13 extern int errstr_main(int argc,char *argv[]);
14 extern int ca_main(int argc,char *argv[]);
15 extern int crl_main(int argc,char *argv[]);
16 extern int rsa_main(int argc,char *argv[]);
17 extern int rsautl_main(int argc,char *argv[]);
18 extern int dsa_main(int argc,char *argv[]);
19 extern int dsaparam_main(int argc,char *argv[]);
20 extern int x509_main(int argc,char *argv[]);
21 extern int genrsa_main(int argc,char *argv[]);
22 extern int gendsa_main(int argc,char *argv[]);
23 extern int s_server_main(int argc,char *argv[]);
24 extern int s_client_main(int argc,char *argv[]);
25 extern int speed_main(int argc,char *argv[]);
26 extern int s_time_main(int argc,char *argv[]);
27 extern int version_main(int argc,char *argv[]);
28 extern int pkcs7_main(int argc,char *argv[]);
29 extern int crl2pkcs7_main(int argc,char *argv[]);
30 extern int sess_id_main(int argc,char *argv[]);
31 extern int ciphers_main(int argc,char *argv[]);
32 extern int nseq_main(int argc,char *argv[]);
33 extern int pkcs12_main(int argc,char *argv[]);
34 extern int pkcs8_main(int argc,char *argv[]);
35 extern int spkac_main(int argc,char *argv[]);
36 extern int smime_main(int argc,char *argv[]);
37 extern int rand_main(int argc,char *argv[]);
38 extern int engine_main(int argc,char *argv[]);
39 extern int ocsp_main(int argc,char *argv[]);
40
41 #define FUNC_TYPE_GENERAL       1
42 #define FUNC_TYPE_MD            2
43 #define FUNC_TYPE_CIPHER        3
44
45 typedef struct {
46         int type;
47         char *name;
48         int (*func)();
49         } FUNCTION;
50
51 FUNCTION functions[] = {
52         {FUNC_TYPE_GENERAL,"verify",verify_main},
53         {FUNC_TYPE_GENERAL,"asn1parse",asn1parse_main},
54         {FUNC_TYPE_GENERAL,"req",req_main},
55         {FUNC_TYPE_GENERAL,"dgst",dgst_main},
56 #ifndef OPENSSL_NO_DH
57         {FUNC_TYPE_GENERAL,"dh",dh_main},
58 #endif
59 #ifndef OPENSSL_NO_DH
60         {FUNC_TYPE_GENERAL,"dhparam",dhparam_main},
61 #endif
62         {FUNC_TYPE_GENERAL,"enc",enc_main},
63         {FUNC_TYPE_GENERAL,"passwd",passwd_main},
64 #ifndef OPENSSL_NO_DH
65         {FUNC_TYPE_GENERAL,"gendh",gendh_main},
66 #endif
67         {FUNC_TYPE_GENERAL,"errstr",errstr_main},
68         {FUNC_TYPE_GENERAL,"ca",ca_main},
69         {FUNC_TYPE_GENERAL,"crl",crl_main},
70 #ifndef OPENSSL_NO_RSA
71         {FUNC_TYPE_GENERAL,"rsa",rsa_main},
72 #endif
73 #ifndef OPENSSL_NO_RSA
74         {FUNC_TYPE_GENERAL,"rsautl",rsautl_main},
75 #endif
76 #ifndef OPENSSL_NO_DSA
77         {FUNC_TYPE_GENERAL,"dsa",dsa_main},
78 #endif
79 #ifndef OPENSSL_NO_DSA
80         {FUNC_TYPE_GENERAL,"dsaparam",dsaparam_main},
81 #endif
82         {FUNC_TYPE_GENERAL,"x509",x509_main},
83 #ifndef OPENSSL_NO_RSA
84         {FUNC_TYPE_GENERAL,"genrsa",genrsa_main},
85 #endif
86 #ifndef OPENSSL_NO_DSA
87         {FUNC_TYPE_GENERAL,"gendsa",gendsa_main},
88 #endif
89 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
90         {FUNC_TYPE_GENERAL,"s_server",s_server_main},
91 #endif
92 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
93         {FUNC_TYPE_GENERAL,"s_client",s_client_main},
94 #endif
95         {FUNC_TYPE_GENERAL,"speed",speed_main},
96 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
97         {FUNC_TYPE_GENERAL,"s_time",s_time_main},
98 #endif
99         {FUNC_TYPE_GENERAL,"version",version_main},
100         {FUNC_TYPE_GENERAL,"pkcs7",pkcs7_main},
101         {FUNC_TYPE_GENERAL,"crl2pkcs7",crl2pkcs7_main},
102         {FUNC_TYPE_GENERAL,"sess_id",sess_id_main},
103 #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
104         {FUNC_TYPE_GENERAL,"ciphers",ciphers_main},
105 #endif
106         {FUNC_TYPE_GENERAL,"nseq",nseq_main},
107 #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1)
108         {FUNC_TYPE_GENERAL,"pkcs12",pkcs12_main},
109 #endif
110         {FUNC_TYPE_GENERAL,"pkcs8",pkcs8_main},
111         {FUNC_TYPE_GENERAL,"spkac",spkac_main},
112         {FUNC_TYPE_GENERAL,"smime",smime_main},
113         {FUNC_TYPE_GENERAL,"rand",rand_main},
114         {FUNC_TYPE_GENERAL,"engine",engine_main},
115         {FUNC_TYPE_GENERAL,"ocsp",ocsp_main},
116         {FUNC_TYPE_MD,"md2",dgst_main},
117         {FUNC_TYPE_MD,"md4",dgst_main},
118         {FUNC_TYPE_MD,"md5",dgst_main},
119         {FUNC_TYPE_MD,"sha",dgst_main},
120         {FUNC_TYPE_MD,"sha1",dgst_main},
121         {FUNC_TYPE_MD,"mdc2",dgst_main},
122         {FUNC_TYPE_MD,"rmd160",dgst_main},
123 #ifndef OPENSSL_NO_AES
124         {FUNC_TYPE_CIPHER,"aes-128-cbc",enc_main},
125 #endif
126 #ifndef OPENSSL_NO_AES
127         {FUNC_TYPE_CIPHER,"aes-128-ecb",enc_main},
128 #endif
129 #ifndef OPENSSL_NO_AES
130         {FUNC_TYPE_CIPHER,"aes-192-cbc",enc_main},
131 #endif
132 #ifndef OPENSSL_NO_AES
133         {FUNC_TYPE_CIPHER,"aes-192-ecb",enc_main},
134 #endif
135 #ifndef OPENSSL_NO_AES
136         {FUNC_TYPE_CIPHER,"aes-256-cbc",enc_main},
137 #endif
138 #ifndef OPENSSL_NO_AES
139         {FUNC_TYPE_CIPHER,"aes-256-ecb",enc_main},
140 #endif
141         {FUNC_TYPE_CIPHER,"base64",enc_main},
142 #ifndef OPENSSL_NO_DES
143         {FUNC_TYPE_CIPHER,"des",enc_main},
144 #endif
145 #ifndef OPENSSL_NO_DES
146         {FUNC_TYPE_CIPHER,"des3",enc_main},
147 #endif
148 #ifndef OPENSSL_NO_DES
149         {FUNC_TYPE_CIPHER,"desx",enc_main},
150 #endif
151 #ifndef OPENSSL_NO_IDEA
152         {FUNC_TYPE_CIPHER,"idea",enc_main},
153 #endif
154 #ifndef OPENSSL_NO_RC4
155         {FUNC_TYPE_CIPHER,"rc4",enc_main},
156 #endif
157 #ifndef OPENSSL_NO_RC4
158         {FUNC_TYPE_CIPHER,"rc4-40",enc_main},
159 #endif
160 #ifndef OPENSSL_NO_RC2
161         {FUNC_TYPE_CIPHER,"rc2",enc_main},
162 #endif
163 #ifndef OPENSSL_NO_BF
164         {FUNC_TYPE_CIPHER,"bf",enc_main},
165 #endif
166 #ifndef OPENSSL_NO_CAST
167         {FUNC_TYPE_CIPHER,"cast",enc_main},
168 #endif
169 #ifndef OPENSSL_NO_RC5
170         {FUNC_TYPE_CIPHER,"rc5",enc_main},
171 #endif
172 #ifndef OPENSSL_NO_DES
173         {FUNC_TYPE_CIPHER,"des-ecb",enc_main},
174 #endif
175 #ifndef OPENSSL_NO_DES
176         {FUNC_TYPE_CIPHER,"des-ede",enc_main},
177 #endif
178 #ifndef OPENSSL_NO_DES
179         {FUNC_TYPE_CIPHER,"des-ede3",enc_main},
180 #endif
181 #ifndef OPENSSL_NO_DES
182         {FUNC_TYPE_CIPHER,"des-cbc",enc_main},
183 #endif
184 #ifndef OPENSSL_NO_DES
185         {FUNC_TYPE_CIPHER,"des-ede-cbc",enc_main},
186 #endif
187 #ifndef OPENSSL_NO_DES
188         {FUNC_TYPE_CIPHER,"des-ede3-cbc",enc_main},
189 #endif
190 #ifndef OPENSSL_NO_DES
191         {FUNC_TYPE_CIPHER,"des-cfb",enc_main},
192 #endif
193 #ifndef OPENSSL_NO_DES
194         {FUNC_TYPE_CIPHER,"des-ede-cfb",enc_main},
195 #endif
196 #ifndef OPENSSL_NO_DES
197         {FUNC_TYPE_CIPHER,"des-ede3-cfb",enc_main},
198 #endif
199 #ifndef OPENSSL_NO_DES
200         {FUNC_TYPE_CIPHER,"des-ofb",enc_main},
201 #endif
202 #ifndef OPENSSL_NO_DES
203         {FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main},
204 #endif
205 #ifndef OPENSSL_NO_DES
206         {FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main},
207 #endif
208 #ifndef OPENSSL_NO_IDEA
209         {FUNC_TYPE_CIPHER,"idea-cbc",enc_main},
210 #endif
211 #ifndef OPENSSL_NO_IDEA
212         {FUNC_TYPE_CIPHER,"idea-ecb",enc_main},
213 #endif
214 #ifndef OPENSSL_NO_IDEA
215         {FUNC_TYPE_CIPHER,"idea-cfb",enc_main},
216 #endif
217 #ifndef OPENSSL_NO_IDEA
218         {FUNC_TYPE_CIPHER,"idea-ofb",enc_main},
219 #endif
220 #ifndef OPENSSL_NO_RC2
221         {FUNC_TYPE_CIPHER,"rc2-cbc",enc_main},
222 #endif
223 #ifndef OPENSSL_NO_RC2
224         {FUNC_TYPE_CIPHER,"rc2-ecb",enc_main},
225 #endif
226 #ifndef OPENSSL_NO_RC2
227         {FUNC_TYPE_CIPHER,"rc2-cfb",enc_main},
228 #endif
229 #ifndef OPENSSL_NO_RC2
230         {FUNC_TYPE_CIPHER,"rc2-ofb",enc_main},
231 #endif
232 #ifndef OPENSSL_NO_RC2
233         {FUNC_TYPE_CIPHER,"rc2-64-cbc",enc_main},
234 #endif
235 #ifndef OPENSSL_NO_RC2
236         {FUNC_TYPE_CIPHER,"rc2-40-cbc",enc_main},
237 #endif
238 #ifndef OPENSSL_NO_BF
239         {FUNC_TYPE_CIPHER,"bf-cbc",enc_main},
240 #endif
241 #ifndef OPENSSL_NO_BF
242         {FUNC_TYPE_CIPHER,"bf-ecb",enc_main},
243 #endif
244 #ifndef OPENSSL_NO_BF
245         {FUNC_TYPE_CIPHER,"bf-cfb",enc_main},
246 #endif
247 #ifndef OPENSSL_NO_BF
248         {FUNC_TYPE_CIPHER,"bf-ofb",enc_main},
249 #endif
250 #ifndef OPENSSL_NO_CAST
251         {FUNC_TYPE_CIPHER,"cast5-cbc",enc_main},
252 #endif
253 #ifndef OPENSSL_NO_CAST
254         {FUNC_TYPE_CIPHER,"cast5-ecb",enc_main},
255 #endif
256 #ifndef OPENSSL_NO_CAST
257         {FUNC_TYPE_CIPHER,"cast5-cfb",enc_main},
258 #endif
259 #ifndef OPENSSL_NO_CAST
260         {FUNC_TYPE_CIPHER,"cast5-ofb",enc_main},
261 #endif
262 #ifndef OPENSSL_NO_CAST
263         {FUNC_TYPE_CIPHER,"cast-cbc",enc_main},
264 #endif
265 #ifndef OPENSSL_NO_RC5
266         {FUNC_TYPE_CIPHER,"rc5-cbc",enc_main},
267 #endif
268 #ifndef OPENSSL_NO_RC5
269         {FUNC_TYPE_CIPHER,"rc5-ecb",enc_main},
270 #endif
271 #ifndef OPENSSL_NO_RC5
272         {FUNC_TYPE_CIPHER,"rc5-cfb",enc_main},
273 #endif
274 #ifndef OPENSSL_NO_RC5
275         {FUNC_TYPE_CIPHER,"rc5-ofb",enc_main},
276 #endif
277         {0,NULL,NULL}
278         };