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