progs.h 10 KB

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