progs.h 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343
  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 s_server_main(int argc, char *argv[]);
  25. extern int s_client_main(int argc, char *argv[]);
  26. extern int speed_main(int argc, char *argv[]);
  27. extern int s_time_main(int argc, char *argv[]);
  28. extern int version_main(int argc, char *argv[]);
  29. extern int pkcs7_main(int argc, char *argv[]);
  30. extern int cms_main(int argc, char *argv[]);
  31. extern int crl2pkcs7_main(int argc, char *argv[]);
  32. extern int sess_id_main(int argc, char *argv[]);
  33. extern int ciphers_main(int argc, char *argv[]);
  34. extern int nseq_main(int argc, char *argv[]);
  35. extern int pkcs12_main(int argc, char *argv[]);
  36. extern int pkcs8_main(int argc, char *argv[]);
  37. extern int spkac_main(int argc, char *argv[]);
  38. extern int smime_main(int argc, char *argv[]);
  39. extern int rand_main(int argc, char *argv[]);
  40. extern int engine_main(int argc, char *argv[]);
  41. extern int ocsp_main(int argc, char *argv[]);
  42. extern int prime_main(int argc, char *argv[]);
  43. #define FUNC_TYPE_GENERAL 1
  44. #define FUNC_TYPE_MD 2
  45. #define FUNC_TYPE_CIPHER 3
  46. typedef struct {
  47. int type;
  48. const char *name;
  49. int (*func) (int argc, char *argv[]);
  50. } FUNCTION;
  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. #ifndef OPENSSL_NO_EC
  83. {FUNC_TYPE_GENERAL, "ec", ec_main},
  84. #endif
  85. #ifndef OPENSSL_NO_EC
  86. {FUNC_TYPE_GENERAL, "ecparam", ecparam_main},
  87. #endif
  88. {FUNC_TYPE_GENERAL, "x509", x509_main},
  89. #ifndef OPENSSL_NO_RSA
  90. {FUNC_TYPE_GENERAL, "genrsa", genrsa_main},
  91. #endif
  92. #ifndef OPENSSL_NO_DSA
  93. {FUNC_TYPE_GENERAL, "gendsa", gendsa_main},
  94. #endif
  95. #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
  96. {FUNC_TYPE_GENERAL, "s_server", s_server_main},
  97. #endif
  98. #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
  99. {FUNC_TYPE_GENERAL, "s_client", s_client_main},
  100. #endif
  101. #ifndef OPENSSL_NO_SPEED
  102. {FUNC_TYPE_GENERAL, "speed", speed_main},
  103. #endif
  104. #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
  105. {FUNC_TYPE_GENERAL, "s_time", s_time_main},
  106. #endif
  107. {FUNC_TYPE_GENERAL, "version", version_main},
  108. {FUNC_TYPE_GENERAL, "pkcs7", pkcs7_main},
  109. #ifndef OPENSSL_NO_CMS
  110. {FUNC_TYPE_GENERAL, "cms", cms_main},
  111. #endif
  112. {FUNC_TYPE_GENERAL, "crl2pkcs7", crl2pkcs7_main},
  113. {FUNC_TYPE_GENERAL, "sess_id", sess_id_main},
  114. #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3))
  115. {FUNC_TYPE_GENERAL, "ciphers", ciphers_main},
  116. #endif
  117. {FUNC_TYPE_GENERAL, "nseq", nseq_main},
  118. #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1)
  119. {FUNC_TYPE_GENERAL, "pkcs12", pkcs12_main},
  120. #endif
  121. {FUNC_TYPE_GENERAL, "pkcs8", pkcs8_main},
  122. {FUNC_TYPE_GENERAL, "spkac", spkac_main},
  123. {FUNC_TYPE_GENERAL, "smime", smime_main},
  124. {FUNC_TYPE_GENERAL, "rand", rand_main},
  125. #ifndef OPENSSL_NO_ENGINE
  126. {FUNC_TYPE_GENERAL, "engine", engine_main},
  127. #endif
  128. {FUNC_TYPE_GENERAL, "ocsp", ocsp_main},
  129. {FUNC_TYPE_GENERAL, "prime", prime_main},
  130. #ifndef OPENSSL_NO_MD2
  131. {FUNC_TYPE_MD, "md2", dgst_main},
  132. #endif
  133. #ifndef OPENSSL_NO_MD4
  134. {FUNC_TYPE_MD, "md4", dgst_main},
  135. #endif
  136. #ifndef OPENSSL_NO_MD5
  137. {FUNC_TYPE_MD, "md5", dgst_main},
  138. #endif
  139. #ifndef OPENSSL_NO_SHA
  140. {FUNC_TYPE_MD, "sha", dgst_main},
  141. #endif
  142. #ifndef OPENSSL_NO_SHA1
  143. {FUNC_TYPE_MD, "sha1", dgst_main},
  144. #endif
  145. #ifndef OPENSSL_NO_MDC2
  146. {FUNC_TYPE_MD, "mdc2", dgst_main},
  147. #endif
  148. #ifndef OPENSSL_NO_RMD160
  149. {FUNC_TYPE_MD, "rmd160", dgst_main},
  150. #endif
  151. #ifndef OPENSSL_NO_AES
  152. {FUNC_TYPE_CIPHER, "aes-128-cbc", enc_main},
  153. #endif
  154. #ifndef OPENSSL_NO_AES
  155. {FUNC_TYPE_CIPHER, "aes-128-ecb", enc_main},
  156. #endif
  157. #ifndef OPENSSL_NO_AES
  158. {FUNC_TYPE_CIPHER, "aes-192-cbc", enc_main},
  159. #endif
  160. #ifndef OPENSSL_NO_AES
  161. {FUNC_TYPE_CIPHER, "aes-192-ecb", enc_main},
  162. #endif
  163. #ifndef OPENSSL_NO_AES
  164. {FUNC_TYPE_CIPHER, "aes-256-cbc", enc_main},
  165. #endif
  166. #ifndef OPENSSL_NO_AES
  167. {FUNC_TYPE_CIPHER, "aes-256-ecb", enc_main},
  168. #endif
  169. #ifndef OPENSSL_NO_CAMELLIA
  170. {FUNC_TYPE_CIPHER, "camellia-128-cbc", enc_main},
  171. #endif
  172. #ifndef OPENSSL_NO_CAMELLIA
  173. {FUNC_TYPE_CIPHER, "camellia-128-ecb", enc_main},
  174. #endif
  175. #ifndef OPENSSL_NO_CAMELLIA
  176. {FUNC_TYPE_CIPHER, "camellia-192-cbc", enc_main},
  177. #endif
  178. #ifndef OPENSSL_NO_CAMELLIA
  179. {FUNC_TYPE_CIPHER, "camellia-192-ecb", enc_main},
  180. #endif
  181. #ifndef OPENSSL_NO_CAMELLIA
  182. {FUNC_TYPE_CIPHER, "camellia-256-cbc", enc_main},
  183. #endif
  184. #ifndef OPENSSL_NO_CAMELLIA
  185. {FUNC_TYPE_CIPHER, "camellia-256-ecb", enc_main},
  186. #endif
  187. {FUNC_TYPE_CIPHER, "base64", enc_main},
  188. #ifndef OPENSSL_NO_DES
  189. {FUNC_TYPE_CIPHER, "des", enc_main},
  190. #endif
  191. #ifndef OPENSSL_NO_DES
  192. {FUNC_TYPE_CIPHER, "des3", enc_main},
  193. #endif
  194. #ifndef OPENSSL_NO_DES
  195. {FUNC_TYPE_CIPHER, "desx", enc_main},
  196. #endif
  197. #ifndef OPENSSL_NO_IDEA
  198. {FUNC_TYPE_CIPHER, "idea", enc_main},
  199. #endif
  200. #ifndef OPENSSL_NO_SEED
  201. {FUNC_TYPE_CIPHER, "seed", enc_main},
  202. #endif
  203. #ifndef OPENSSL_NO_RC4
  204. {FUNC_TYPE_CIPHER, "rc4", enc_main},
  205. #endif
  206. #ifndef OPENSSL_NO_RC4
  207. {FUNC_TYPE_CIPHER, "rc4-40", enc_main},
  208. #endif
  209. #ifndef OPENSSL_NO_RC2
  210. {FUNC_TYPE_CIPHER, "rc2", enc_main},
  211. #endif
  212. #ifndef OPENSSL_NO_BF
  213. {FUNC_TYPE_CIPHER, "bf", enc_main},
  214. #endif
  215. #ifndef OPENSSL_NO_CAST
  216. {FUNC_TYPE_CIPHER, "cast", enc_main},
  217. #endif
  218. #ifndef OPENSSL_NO_RC5
  219. {FUNC_TYPE_CIPHER, "rc5", enc_main},
  220. #endif
  221. #ifndef OPENSSL_NO_DES
  222. {FUNC_TYPE_CIPHER, "des-ecb", enc_main},
  223. #endif
  224. #ifndef OPENSSL_NO_DES
  225. {FUNC_TYPE_CIPHER, "des-ede", enc_main},
  226. #endif
  227. #ifndef OPENSSL_NO_DES
  228. {FUNC_TYPE_CIPHER, "des-ede3", enc_main},
  229. #endif
  230. #ifndef OPENSSL_NO_DES
  231. {FUNC_TYPE_CIPHER, "des-cbc", enc_main},
  232. #endif
  233. #ifndef OPENSSL_NO_DES
  234. {FUNC_TYPE_CIPHER, "des-ede-cbc", enc_main},
  235. #endif
  236. #ifndef OPENSSL_NO_DES
  237. {FUNC_TYPE_CIPHER, "des-ede3-cbc", enc_main},
  238. #endif
  239. #ifndef OPENSSL_NO_DES
  240. {FUNC_TYPE_CIPHER, "des-cfb", enc_main},
  241. #endif
  242. #ifndef OPENSSL_NO_DES
  243. {FUNC_TYPE_CIPHER, "des-ede-cfb", enc_main},
  244. #endif
  245. #ifndef OPENSSL_NO_DES
  246. {FUNC_TYPE_CIPHER, "des-ede3-cfb", enc_main},
  247. #endif
  248. #ifndef OPENSSL_NO_DES
  249. {FUNC_TYPE_CIPHER, "des-ofb", enc_main},
  250. #endif
  251. #ifndef OPENSSL_NO_DES
  252. {FUNC_TYPE_CIPHER, "des-ede-ofb", enc_main},
  253. #endif
  254. #ifndef OPENSSL_NO_DES
  255. {FUNC_TYPE_CIPHER, "des-ede3-ofb", enc_main},
  256. #endif
  257. #ifndef OPENSSL_NO_IDEA
  258. {FUNC_TYPE_CIPHER, "idea-cbc", enc_main},
  259. #endif
  260. #ifndef OPENSSL_NO_IDEA
  261. {FUNC_TYPE_CIPHER, "idea-ecb", enc_main},
  262. #endif
  263. #ifndef OPENSSL_NO_IDEA
  264. {FUNC_TYPE_CIPHER, "idea-cfb", enc_main},
  265. #endif
  266. #ifndef OPENSSL_NO_IDEA
  267. {FUNC_TYPE_CIPHER, "idea-ofb", enc_main},
  268. #endif
  269. #ifndef OPENSSL_NO_SEED
  270. {FUNC_TYPE_CIPHER, "seed-cbc", enc_main},
  271. #endif
  272. #ifndef OPENSSL_NO_SEED
  273. {FUNC_TYPE_CIPHER, "seed-ecb", enc_main},
  274. #endif
  275. #ifndef OPENSSL_NO_SEED
  276. {FUNC_TYPE_CIPHER, "seed-cfb", enc_main},
  277. #endif
  278. #ifndef OPENSSL_NO_SEED
  279. {FUNC_TYPE_CIPHER, "seed-ofb", enc_main},
  280. #endif
  281. #ifndef OPENSSL_NO_RC2
  282. {FUNC_TYPE_CIPHER, "rc2-cbc", enc_main},
  283. #endif
  284. #ifndef OPENSSL_NO_RC2
  285. {FUNC_TYPE_CIPHER, "rc2-ecb", enc_main},
  286. #endif
  287. #ifndef OPENSSL_NO_RC2
  288. {FUNC_TYPE_CIPHER, "rc2-cfb", enc_main},
  289. #endif
  290. #ifndef OPENSSL_NO_RC2
  291. {FUNC_TYPE_CIPHER, "rc2-ofb", enc_main},
  292. #endif
  293. #ifndef OPENSSL_NO_RC2
  294. {FUNC_TYPE_CIPHER, "rc2-64-cbc", enc_main},
  295. #endif
  296. #ifndef OPENSSL_NO_RC2
  297. {FUNC_TYPE_CIPHER, "rc2-40-cbc", enc_main},
  298. #endif
  299. #ifndef OPENSSL_NO_BF
  300. {FUNC_TYPE_CIPHER, "bf-cbc", enc_main},
  301. #endif
  302. #ifndef OPENSSL_NO_BF
  303. {FUNC_TYPE_CIPHER, "bf-ecb", enc_main},
  304. #endif
  305. #ifndef OPENSSL_NO_BF
  306. {FUNC_TYPE_CIPHER, "bf-cfb", enc_main},
  307. #endif
  308. #ifndef OPENSSL_NO_BF
  309. {FUNC_TYPE_CIPHER, "bf-ofb", enc_main},
  310. #endif
  311. #ifndef OPENSSL_NO_CAST
  312. {FUNC_TYPE_CIPHER, "cast5-cbc", enc_main},
  313. #endif
  314. #ifndef OPENSSL_NO_CAST
  315. {FUNC_TYPE_CIPHER, "cast5-ecb", enc_main},
  316. #endif
  317. #ifndef OPENSSL_NO_CAST
  318. {FUNC_TYPE_CIPHER, "cast5-cfb", enc_main},
  319. #endif
  320. #ifndef OPENSSL_NO_CAST
  321. {FUNC_TYPE_CIPHER, "cast5-ofb", enc_main},
  322. #endif
  323. #ifndef OPENSSL_NO_CAST
  324. {FUNC_TYPE_CIPHER, "cast-cbc", enc_main},
  325. #endif
  326. #ifndef OPENSSL_NO_RC5
  327. {FUNC_TYPE_CIPHER, "rc5-cbc", enc_main},
  328. #endif
  329. #ifndef OPENSSL_NO_RC5
  330. {FUNC_TYPE_CIPHER, "rc5-ecb", enc_main},
  331. #endif
  332. #ifndef OPENSSL_NO_RC5
  333. {FUNC_TYPE_CIPHER, "rc5-cfb", enc_main},
  334. #endif
  335. #ifndef OPENSSL_NO_RC5
  336. {FUNC_TYPE_CIPHER, "rc5-ofb", enc_main},
  337. #endif
  338. {0, NULL, NULL}
  339. };