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 ec_main(int argc, char *argv[]); 21 extern int ecparam_main(int argc, char *argv[]); 22 extern int x509_main(int argc, char *argv[]); 23 extern int genrsa_main(int argc, char *argv[]); 24 extern int gendsa_main(int argc, char *argv[]); 25 extern int genpkey_main(int argc, char *argv[]); 26 extern int s_server_main(int argc, char *argv[]); 27 extern int s_client_main(int argc, char *argv[]); 28 extern int speed_main(int argc, char *argv[]); 29 extern int s_time_main(int argc, char *argv[]); 30 extern int version_main(int argc, char *argv[]); 31 extern int pkcs7_main(int argc, char *argv[]); 32 extern int cms_main(int argc, char *argv[]); 33 extern int crl2pkcs7_main(int argc, char *argv[]); 34 extern int sess_id_main(int argc, char *argv[]); 35 extern int ciphers_main(int argc, char *argv[]); 36 extern int nseq_main(int argc, char *argv[]); 37 extern int pkcs12_main(int argc, char *argv[]); 38 extern int pkcs8_main(int argc, char *argv[]); 39 extern int pkey_main(int argc, char *argv[]); 40 extern int pkeyparam_main(int argc, char *argv[]); 41 extern int pkeyutl_main(int argc, char *argv[]); 42 extern int spkac_main(int argc, char *argv[]); 43 extern int smime_main(int argc, char *argv[]); 44 extern int rand_main(int argc, char *argv[]); 45 extern int engine_main(int argc, char *argv[]); 46 extern int ocsp_main(int argc, char *argv[]); 47 extern int prime_main(int argc, char *argv[]); 48 extern int ts_main(int argc, char *argv[]); 49 extern int srp_main(int argc, char *argv[]); 50 51 #define FUNC_TYPE_GENERAL 1 52 #define FUNC_TYPE_MD 2 53 #define FUNC_TYPE_CIPHER 3 54 #define FUNC_TYPE_PKEY 4 55 #define FUNC_TYPE_MD_ALG 5 56 #define FUNC_TYPE_CIPHER_ALG 6 57 58 typedef struct { 59 int type; 60 const char *name; 61 int (*func) (int argc, char *argv[]); 62 } FUNCTION; 63 DECLARE_LHASH_OF(FUNCTION); 64 65 FUNCTION functions[] = { 66 {FUNC_TYPE_GENERAL, "verify", verify_main}, 67 {FUNC_TYPE_GENERAL, "asn1parse", asn1parse_main}, 68 {FUNC_TYPE_GENERAL, "req", req_main}, 69 {FUNC_TYPE_GENERAL, "dgst", dgst_main}, 70 #ifndef OPENSSL_NO_DH 71 {FUNC_TYPE_GENERAL, "dh", dh_main}, 72 #endif 73 #ifndef OPENSSL_NO_DH 74 {FUNC_TYPE_GENERAL, "dhparam", dhparam_main}, 75 #endif 76 {FUNC_TYPE_GENERAL, "enc", enc_main}, 77 {FUNC_TYPE_GENERAL, "passwd", passwd_main}, 78 #ifndef OPENSSL_NO_DH 79 {FUNC_TYPE_GENERAL, "gendh", gendh_main}, 80 #endif 81 {FUNC_TYPE_GENERAL, "errstr", errstr_main}, 82 {FUNC_TYPE_GENERAL, "ca", ca_main}, 83 {FUNC_TYPE_GENERAL, "crl", crl_main}, 84 #ifndef OPENSSL_NO_RSA 85 {FUNC_TYPE_GENERAL, "rsa", rsa_main}, 86 #endif 87 #ifndef OPENSSL_NO_RSA 88 {FUNC_TYPE_GENERAL, "rsautl", rsautl_main}, 89 #endif 90 #ifndef OPENSSL_NO_DSA 91 {FUNC_TYPE_GENERAL, "dsa", dsa_main}, 92 #endif 93 #ifndef OPENSSL_NO_DSA 94 {FUNC_TYPE_GENERAL, "dsaparam", dsaparam_main}, 95 #endif 96 #ifndef OPENSSL_NO_EC 97 {FUNC_TYPE_GENERAL, "ec", ec_main}, 98 #endif 99 #ifndef OPENSSL_NO_EC 100 {FUNC_TYPE_GENERAL, "ecparam", ecparam_main}, 101 #endif 102 {FUNC_TYPE_GENERAL, "x509", x509_main}, 103 #ifndef OPENSSL_NO_RSA 104 {FUNC_TYPE_GENERAL, "genrsa", genrsa_main}, 105 #endif 106 #ifndef OPENSSL_NO_DSA 107 {FUNC_TYPE_GENERAL, "gendsa", gendsa_main}, 108 #endif 109 {FUNC_TYPE_GENERAL, "genpkey", genpkey_main}, 110 #if !defined(OPENSSL_NO_SOCK) 111 {FUNC_TYPE_GENERAL, "s_server", s_server_main}, 112 #endif 113 #if !defined(OPENSSL_NO_SOCK) 114 {FUNC_TYPE_GENERAL, "s_client", s_client_main}, 115 #endif 116 #ifndef OPENSSL_NO_SPEED 117 {FUNC_TYPE_GENERAL, "speed", speed_main}, 118 #endif 119 #if !defined(OPENSSL_NO_SOCK) 120 {FUNC_TYPE_GENERAL, "s_time", s_time_main}, 121 #endif 122 {FUNC_TYPE_GENERAL, "version", version_main}, 123 {FUNC_TYPE_GENERAL, "pkcs7", pkcs7_main}, 124 #ifndef OPENSSL_NO_CMS 125 {FUNC_TYPE_GENERAL, "cms", cms_main}, 126 #endif 127 {FUNC_TYPE_GENERAL, "crl2pkcs7", crl2pkcs7_main}, 128 {FUNC_TYPE_GENERAL, "sess_id", sess_id_main}, 129 #if !defined(OPENSSL_NO_SOCK) 130 {FUNC_TYPE_GENERAL, "ciphers", ciphers_main}, 131 #endif 132 {FUNC_TYPE_GENERAL, "nseq", nseq_main}, 133 #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1) 134 {FUNC_TYPE_GENERAL, "pkcs12", pkcs12_main}, 135 #endif 136 {FUNC_TYPE_GENERAL, "pkcs8", pkcs8_main}, 137 {FUNC_TYPE_GENERAL, "pkey", pkey_main}, 138 {FUNC_TYPE_GENERAL, "pkeyparam", pkeyparam_main}, 139 {FUNC_TYPE_GENERAL, "pkeyutl", pkeyutl_main}, 140 {FUNC_TYPE_GENERAL, "spkac", spkac_main}, 141 {FUNC_TYPE_GENERAL, "smime", smime_main}, 142 {FUNC_TYPE_GENERAL, "rand", rand_main}, 143 #ifndef OPENSSL_NO_ENGINE 144 {FUNC_TYPE_GENERAL, "engine", engine_main}, 145 #endif 146 #ifndef OPENSSL_NO_OCSP 147 {FUNC_TYPE_GENERAL, "ocsp", ocsp_main}, 148 #endif 149 {FUNC_TYPE_GENERAL, "prime", prime_main}, 150 {FUNC_TYPE_GENERAL, "ts", ts_main}, 151 #ifndef OPENSSL_NO_SRP 152 {FUNC_TYPE_GENERAL, "srp", srp_main}, 153 #endif 154 #ifndef OPENSSL_NO_MD2 155 {FUNC_TYPE_MD, "md2", dgst_main}, 156 #endif 157 #ifndef OPENSSL_NO_MD4 158 {FUNC_TYPE_MD, "md4", dgst_main}, 159 #endif 160 #ifndef OPENSSL_NO_MD5 161 {FUNC_TYPE_MD, "md5", dgst_main}, 162 #endif 163 #ifndef OPENSSL_NO_SHA 164 {FUNC_TYPE_MD, "sha", dgst_main}, 165 #endif 166 #ifndef OPENSSL_NO_SHA1 167 {FUNC_TYPE_MD, "sha1", dgst_main}, 168 #endif 169 #ifndef OPENSSL_NO_MDC2 170 {FUNC_TYPE_MD, "mdc2", dgst_main}, 171 #endif 172 #ifndef OPENSSL_NO_RMD160 173 {FUNC_TYPE_MD, "rmd160", dgst_main}, 174 #endif 175 #ifndef OPENSSL_NO_AES 176 {FUNC_TYPE_CIPHER, "aes-128-cbc", enc_main}, 177 #endif 178 #ifndef OPENSSL_NO_AES 179 {FUNC_TYPE_CIPHER, "aes-128-ecb", enc_main}, 180 #endif 181 #ifndef OPENSSL_NO_AES 182 {FUNC_TYPE_CIPHER, "aes-192-cbc", enc_main}, 183 #endif 184 #ifndef OPENSSL_NO_AES 185 {FUNC_TYPE_CIPHER, "aes-192-ecb", enc_main}, 186 #endif 187 #ifndef OPENSSL_NO_AES 188 {FUNC_TYPE_CIPHER, "aes-256-cbc", enc_main}, 189 #endif 190 #ifndef OPENSSL_NO_AES 191 {FUNC_TYPE_CIPHER, "aes-256-ecb", enc_main}, 192 #endif 193 #ifndef OPENSSL_NO_CAMELLIA 194 {FUNC_TYPE_CIPHER, "camellia-128-cbc", enc_main}, 195 #endif 196 #ifndef OPENSSL_NO_CAMELLIA 197 {FUNC_TYPE_CIPHER, "camellia-128-ecb", enc_main}, 198 #endif 199 #ifndef OPENSSL_NO_CAMELLIA 200 {FUNC_TYPE_CIPHER, "camellia-192-cbc", enc_main}, 201 #endif 202 #ifndef OPENSSL_NO_CAMELLIA 203 {FUNC_TYPE_CIPHER, "camellia-192-ecb", enc_main}, 204 #endif 205 #ifndef OPENSSL_NO_CAMELLIA 206 {FUNC_TYPE_CIPHER, "camellia-256-cbc", enc_main}, 207 #endif 208 #ifndef OPENSSL_NO_CAMELLIA 209 {FUNC_TYPE_CIPHER, "camellia-256-ecb", enc_main}, 210 #endif 211 {FUNC_TYPE_CIPHER, "base64", enc_main}, 212 #ifdef ZLIB 213 {FUNC_TYPE_CIPHER, "zlib", enc_main}, 214 #endif 215 #ifndef OPENSSL_NO_DES 216 {FUNC_TYPE_CIPHER, "des", enc_main}, 217 #endif 218 #ifndef OPENSSL_NO_DES 219 {FUNC_TYPE_CIPHER, "des3", enc_main}, 220 #endif 221 #ifndef OPENSSL_NO_DES 222 {FUNC_TYPE_CIPHER, "desx", enc_main}, 223 #endif 224 #ifndef OPENSSL_NO_IDEA 225 {FUNC_TYPE_CIPHER, "idea", enc_main}, 226 #endif 227 #ifndef OPENSSL_NO_SEED 228 {FUNC_TYPE_CIPHER, "seed", enc_main}, 229 #endif 230 #ifndef OPENSSL_NO_RC4 231 {FUNC_TYPE_CIPHER, "rc4", enc_main}, 232 #endif 233 #ifndef OPENSSL_NO_RC4 234 {FUNC_TYPE_CIPHER, "rc4-40", enc_main}, 235 #endif 236 #ifndef OPENSSL_NO_RC2 237 {FUNC_TYPE_CIPHER, "rc2", enc_main}, 238 #endif 239 #ifndef OPENSSL_NO_BF 240 {FUNC_TYPE_CIPHER, "bf", enc_main}, 241 #endif 242 #ifndef OPENSSL_NO_CAST 243 {FUNC_TYPE_CIPHER, "cast", enc_main}, 244 #endif 245 #ifndef OPENSSL_NO_RC5 246 {FUNC_TYPE_CIPHER, "rc5", enc_main}, 247 #endif 248 #ifndef OPENSSL_NO_DES 249 {FUNC_TYPE_CIPHER, "des-ecb", enc_main}, 250 #endif 251 #ifndef OPENSSL_NO_DES 252 {FUNC_TYPE_CIPHER, "des-ede", enc_main}, 253 #endif 254 #ifndef OPENSSL_NO_DES 255 {FUNC_TYPE_CIPHER, "des-ede3", enc_main}, 256 #endif 257 #ifndef OPENSSL_NO_DES 258 {FUNC_TYPE_CIPHER, "des-cbc", enc_main}, 259 #endif 260 #ifndef OPENSSL_NO_DES 261 {FUNC_TYPE_CIPHER, "des-ede-cbc", enc_main}, 262 #endif 263 #ifndef OPENSSL_NO_DES 264 {FUNC_TYPE_CIPHER, "des-ede3-cbc", enc_main}, 265 #endif 266 #ifndef OPENSSL_NO_DES 267 {FUNC_TYPE_CIPHER, "des-cfb", enc_main}, 268 #endif 269 #ifndef OPENSSL_NO_DES 270 {FUNC_TYPE_CIPHER, "des-ede-cfb", enc_main}, 271 #endif 272 #ifndef OPENSSL_NO_DES 273 {FUNC_TYPE_CIPHER, "des-ede3-cfb", enc_main}, 274 #endif 275 #ifndef OPENSSL_NO_DES 276 {FUNC_TYPE_CIPHER, "des-ofb", enc_main}, 277 #endif 278 #ifndef OPENSSL_NO_DES 279 {FUNC_TYPE_CIPHER, "des-ede-ofb", enc_main}, 280 #endif 281 #ifndef OPENSSL_NO_DES 282 {FUNC_TYPE_CIPHER, "des-ede3-ofb", enc_main}, 283 #endif 284 #ifndef OPENSSL_NO_IDEA 285 {FUNC_TYPE_CIPHER, "idea-cbc", enc_main}, 286 #endif 287 #ifndef OPENSSL_NO_IDEA 288 {FUNC_TYPE_CIPHER, "idea-ecb", enc_main}, 289 #endif 290 #ifndef OPENSSL_NO_IDEA 291 {FUNC_TYPE_CIPHER, "idea-cfb", enc_main}, 292 #endif 293 #ifndef OPENSSL_NO_IDEA 294 {FUNC_TYPE_CIPHER, "idea-ofb", enc_main}, 295 #endif 296 #ifndef OPENSSL_NO_SEED 297 {FUNC_TYPE_CIPHER, "seed-cbc", enc_main}, 298 #endif 299 #ifndef OPENSSL_NO_SEED 300 {FUNC_TYPE_CIPHER, "seed-ecb", enc_main}, 301 #endif 302 #ifndef OPENSSL_NO_SEED 303 {FUNC_TYPE_CIPHER, "seed-cfb", enc_main}, 304 #endif 305 #ifndef OPENSSL_NO_SEED 306 {FUNC_TYPE_CIPHER, "seed-ofb", enc_main}, 307 #endif 308 #ifndef OPENSSL_NO_RC2 309 {FUNC_TYPE_CIPHER, "rc2-cbc", enc_main}, 310 #endif 311 #ifndef OPENSSL_NO_RC2 312 {FUNC_TYPE_CIPHER, "rc2-ecb", enc_main}, 313 #endif 314 #ifndef OPENSSL_NO_RC2 315 {FUNC_TYPE_CIPHER, "rc2-cfb", enc_main}, 316 #endif 317 #ifndef OPENSSL_NO_RC2 318 {FUNC_TYPE_CIPHER, "rc2-ofb", enc_main}, 319 #endif 320 #ifndef OPENSSL_NO_RC2 321 {FUNC_TYPE_CIPHER, "rc2-64-cbc", enc_main}, 322 #endif 323 #ifndef OPENSSL_NO_RC2 324 {FUNC_TYPE_CIPHER, "rc2-40-cbc", enc_main}, 325 #endif 326 #ifndef OPENSSL_NO_BF 327 {FUNC_TYPE_CIPHER, "bf-cbc", enc_main}, 328 #endif 329 #ifndef OPENSSL_NO_BF 330 {FUNC_TYPE_CIPHER, "bf-ecb", enc_main}, 331 #endif 332 #ifndef OPENSSL_NO_BF 333 {FUNC_TYPE_CIPHER, "bf-cfb", enc_main}, 334 #endif 335 #ifndef OPENSSL_NO_BF 336 {FUNC_TYPE_CIPHER, "bf-ofb", enc_main}, 337 #endif 338 #ifndef OPENSSL_NO_CAST 339 {FUNC_TYPE_CIPHER, "cast5-cbc", enc_main}, 340 #endif 341 #ifndef OPENSSL_NO_CAST 342 {FUNC_TYPE_CIPHER, "cast5-ecb", enc_main}, 343 #endif 344 #ifndef OPENSSL_NO_CAST 345 {FUNC_TYPE_CIPHER, "cast5-cfb", enc_main}, 346 #endif 347 #ifndef OPENSSL_NO_CAST 348 {FUNC_TYPE_CIPHER, "cast5-ofb", enc_main}, 349 #endif 350 #ifndef OPENSSL_NO_CAST 351 {FUNC_TYPE_CIPHER, "cast-cbc", enc_main}, 352 #endif 353 #ifndef OPENSSL_NO_RC5 354 {FUNC_TYPE_CIPHER, "rc5-cbc", enc_main}, 355 #endif 356 #ifndef OPENSSL_NO_RC5 357 {FUNC_TYPE_CIPHER, "rc5-ecb", enc_main}, 358 #endif 359 #ifndef OPENSSL_NO_RC5 360 {FUNC_TYPE_CIPHER, "rc5-cfb", enc_main}, 361 #endif 362 #ifndef OPENSSL_NO_RC5 363 {FUNC_TYPE_CIPHER, "rc5-ofb", enc_main}, 364 #endif 365 {0, NULL, NULL} 366 }; 367