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 39 #define FUNC_TYPE_GENERAL 1 40 #define FUNC_TYPE_MD 2 41 #define FUNC_TYPE_CIPHER 3 42 43 typedef struct { 44 int type; 45 char *name; 46 int (*func)(); 47 } FUNCTION; 48 49 FUNCTION functions[] = { 50 {FUNC_TYPE_GENERAL,"verify",verify_main}, 51 {FUNC_TYPE_GENERAL,"asn1parse",asn1parse_main}, 52 {FUNC_TYPE_GENERAL,"req",req_main}, 53 {FUNC_TYPE_GENERAL,"dgst",dgst_main}, 54 #ifndef NO_DH 55 {FUNC_TYPE_GENERAL,"dh",dh_main}, 56 #endif 57 #ifndef NO_DH 58 {FUNC_TYPE_GENERAL,"dhparam",dhparam_main}, 59 #endif 60 {FUNC_TYPE_GENERAL,"enc",enc_main}, 61 {FUNC_TYPE_GENERAL,"passwd",passwd_main}, 62 #ifndef NO_DH 63 {FUNC_TYPE_GENERAL,"gendh",gendh_main}, 64 #endif 65 {FUNC_TYPE_GENERAL,"errstr",errstr_main}, 66 {FUNC_TYPE_GENERAL,"ca",ca_main}, 67 {FUNC_TYPE_GENERAL,"crl",crl_main}, 68 #ifndef NO_RSA 69 {FUNC_TYPE_GENERAL,"rsa",rsa_main}, 70 #endif 71 #ifndef NO_RSA 72 {FUNC_TYPE_GENERAL,"rsautl",rsautl_main}, 73 #endif 74 #ifndef NO_DSA 75 {FUNC_TYPE_GENERAL,"dsa",dsa_main}, 76 #endif 77 #ifndef NO_DSA 78 {FUNC_TYPE_GENERAL,"dsaparam",dsaparam_main}, 79 #endif 80 {FUNC_TYPE_GENERAL,"x509",x509_main}, 81 #ifndef NO_RSA 82 {FUNC_TYPE_GENERAL,"genrsa",genrsa_main}, 83 #endif 84 #ifndef NO_DSA 85 {FUNC_TYPE_GENERAL,"gendsa",gendsa_main}, 86 #endif 87 #if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3)) 88 {FUNC_TYPE_GENERAL,"s_server",s_server_main}, 89 #endif 90 #if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3)) 91 {FUNC_TYPE_GENERAL,"s_client",s_client_main}, 92 #endif 93 {FUNC_TYPE_GENERAL,"speed",speed_main}, 94 #if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3)) 95 {FUNC_TYPE_GENERAL,"s_time",s_time_main}, 96 #endif 97 {FUNC_TYPE_GENERAL,"version",version_main}, 98 {FUNC_TYPE_GENERAL,"pkcs7",pkcs7_main}, 99 {FUNC_TYPE_GENERAL,"crl2pkcs7",crl2pkcs7_main}, 100 {FUNC_TYPE_GENERAL,"sess_id",sess_id_main}, 101 #if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3)) 102 {FUNC_TYPE_GENERAL,"ciphers",ciphers_main}, 103 #endif 104 {FUNC_TYPE_GENERAL,"nseq",nseq_main}, 105 #if !defined(NO_DES) && !defined(NO_SHA1) 106 {FUNC_TYPE_GENERAL,"pkcs12",pkcs12_main}, 107 #endif 108 {FUNC_TYPE_GENERAL,"pkcs8",pkcs8_main}, 109 {FUNC_TYPE_GENERAL,"spkac",spkac_main}, 110 {FUNC_TYPE_GENERAL,"smime",smime_main}, 111 {FUNC_TYPE_GENERAL,"rand",rand_main}, 112 {FUNC_TYPE_MD,"md2",dgst_main}, 113 {FUNC_TYPE_MD,"md4",dgst_main}, 114 {FUNC_TYPE_MD,"md5",dgst_main}, 115 {FUNC_TYPE_MD,"sha",dgst_main}, 116 {FUNC_TYPE_MD,"sha1",dgst_main}, 117 {FUNC_TYPE_MD,"mdc2",dgst_main}, 118 {FUNC_TYPE_MD,"rmd160",dgst_main}, 119 {FUNC_TYPE_CIPHER,"base64",enc_main}, 120 #ifndef NO_DES 121 {FUNC_TYPE_CIPHER,"des",enc_main}, 122 #endif 123 #ifndef NO_DES 124 {FUNC_TYPE_CIPHER,"des3",enc_main}, 125 #endif 126 #ifndef NO_DES 127 {FUNC_TYPE_CIPHER,"desx",enc_main}, 128 #endif 129 #ifndef NO_IDEA 130 {FUNC_TYPE_CIPHER,"idea",enc_main}, 131 #endif 132 #ifndef NO_RC4 133 {FUNC_TYPE_CIPHER,"rc4",enc_main}, 134 #endif 135 #ifndef NO_RC4 136 {FUNC_TYPE_CIPHER,"rc4-40",enc_main}, 137 #endif 138 #ifndef NO_RC2 139 {FUNC_TYPE_CIPHER,"rc2",enc_main}, 140 #endif 141 #ifndef NO_BF 142 {FUNC_TYPE_CIPHER,"bf",enc_main}, 143 #endif 144 #ifndef NO_CAST 145 {FUNC_TYPE_CIPHER,"cast",enc_main}, 146 #endif 147 #ifndef NO_RC5 148 {FUNC_TYPE_CIPHER,"rc5",enc_main}, 149 #endif 150 #ifndef NO_DES 151 {FUNC_TYPE_CIPHER,"des-ecb",enc_main}, 152 #endif 153 #ifndef NO_DES 154 {FUNC_TYPE_CIPHER,"des-ede",enc_main}, 155 #endif 156 #ifndef NO_DES 157 {FUNC_TYPE_CIPHER,"des-ede3",enc_main}, 158 #endif 159 #ifndef NO_DES 160 {FUNC_TYPE_CIPHER,"des-cbc",enc_main}, 161 #endif 162 #ifndef NO_DES 163 {FUNC_TYPE_CIPHER,"des-ede-cbc",enc_main}, 164 #endif 165 #ifndef NO_DES 166 {FUNC_TYPE_CIPHER,"des-ede3-cbc",enc_main}, 167 #endif 168 #ifndef NO_DES 169 {FUNC_TYPE_CIPHER,"des-cfb",enc_main}, 170 #endif 171 #ifndef NO_DES 172 {FUNC_TYPE_CIPHER,"des-ede-cfb",enc_main}, 173 #endif 174 #ifndef NO_DES 175 {FUNC_TYPE_CIPHER,"des-ede3-cfb",enc_main}, 176 #endif 177 #ifndef NO_DES 178 {FUNC_TYPE_CIPHER,"des-ofb",enc_main}, 179 #endif 180 #ifndef NO_DES 181 {FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main}, 182 #endif 183 #ifndef NO_DES 184 {FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main}, 185 #endif 186 #ifndef NO_IDEA 187 {FUNC_TYPE_CIPHER,"idea-cbc",enc_main}, 188 #endif 189 #ifndef NO_IDEA 190 {FUNC_TYPE_CIPHER,"idea-ecb",enc_main}, 191 #endif 192 #ifndef NO_IDEA 193 {FUNC_TYPE_CIPHER,"idea-cfb",enc_main}, 194 #endif 195 #ifndef NO_IDEA 196 {FUNC_TYPE_CIPHER,"idea-ofb",enc_main}, 197 #endif 198 #ifndef NO_RC2 199 {FUNC_TYPE_CIPHER,"rc2-cbc",enc_main}, 200 #endif 201 #ifndef NO_RC2 202 {FUNC_TYPE_CIPHER,"rc2-ecb",enc_main}, 203 #endif 204 #ifndef NO_RC2 205 {FUNC_TYPE_CIPHER,"rc2-cfb",enc_main}, 206 #endif 207 #ifndef NO_RC2 208 {FUNC_TYPE_CIPHER,"rc2-ofb",enc_main}, 209 #endif 210 #ifndef NO_RC2 211 {FUNC_TYPE_CIPHER,"rc2-64-cbc",enc_main}, 212 #endif 213 #ifndef NO_RC2 214 {FUNC_TYPE_CIPHER,"rc2-40-cbc",enc_main}, 215 #endif 216 #ifndef NO_BF 217 {FUNC_TYPE_CIPHER,"bf-cbc",enc_main}, 218 #endif 219 #ifndef NO_BF 220 {FUNC_TYPE_CIPHER,"bf-ecb",enc_main}, 221 #endif 222 #ifndef NO_BF 223 {FUNC_TYPE_CIPHER,"bf-cfb",enc_main}, 224 #endif 225 #ifndef NO_BF 226 {FUNC_TYPE_CIPHER,"bf-ofb",enc_main}, 227 #endif 228 #ifndef NO_CAST 229 {FUNC_TYPE_CIPHER,"cast5-cbc",enc_main}, 230 #endif 231 #ifndef NO_CAST 232 {FUNC_TYPE_CIPHER,"cast5-ecb",enc_main}, 233 #endif 234 #ifndef NO_CAST 235 {FUNC_TYPE_CIPHER,"cast5-cfb",enc_main}, 236 #endif 237 #ifndef NO_CAST 238 {FUNC_TYPE_CIPHER,"cast5-ofb",enc_main}, 239 #endif 240 #ifndef NO_CAST 241 {FUNC_TYPE_CIPHER,"cast-cbc",enc_main}, 242 #endif 243 #ifndef NO_RC5 244 {FUNC_TYPE_CIPHER,"rc5-cbc",enc_main}, 245 #endif 246 #ifndef NO_RC5 247 {FUNC_TYPE_CIPHER,"rc5-ecb",enc_main}, 248 #endif 249 #ifndef NO_RC5 250 {FUNC_TYPE_CIPHER,"rc5-cfb",enc_main}, 251 #endif 252 #ifndef NO_RC5 253 {FUNC_TYPE_CIPHER,"rc5-ofb",enc_main}, 254 #endif 255 {0,NULL,NULL} 256 }; 257