10Sstevel@tonic-gate /* apps/progs.h */ 20Sstevel@tonic-gate /* automatically generated by progs.pl for openssl.c */ 30Sstevel@tonic-gate 40Sstevel@tonic-gate extern int verify_main(int argc,char *argv[]); 50Sstevel@tonic-gate extern int asn1parse_main(int argc,char *argv[]); 60Sstevel@tonic-gate extern int req_main(int argc,char *argv[]); 70Sstevel@tonic-gate extern int dgst_main(int argc,char *argv[]); 80Sstevel@tonic-gate extern int dh_main(int argc,char *argv[]); 90Sstevel@tonic-gate extern int dhparam_main(int argc,char *argv[]); 100Sstevel@tonic-gate extern int enc_main(int argc,char *argv[]); 110Sstevel@tonic-gate extern int passwd_main(int argc,char *argv[]); 120Sstevel@tonic-gate extern int gendh_main(int argc,char *argv[]); 130Sstevel@tonic-gate extern int errstr_main(int argc,char *argv[]); 140Sstevel@tonic-gate extern int ca_main(int argc,char *argv[]); 150Sstevel@tonic-gate extern int crl_main(int argc,char *argv[]); 160Sstevel@tonic-gate extern int rsa_main(int argc,char *argv[]); 170Sstevel@tonic-gate extern int rsautl_main(int argc,char *argv[]); 180Sstevel@tonic-gate extern int dsa_main(int argc,char *argv[]); 190Sstevel@tonic-gate extern int dsaparam_main(int argc,char *argv[]); 20*2139Sjp161948 extern int ec_main(int argc,char *argv[]); 21*2139Sjp161948 extern int ecparam_main(int argc,char *argv[]); 220Sstevel@tonic-gate extern int x509_main(int argc,char *argv[]); 230Sstevel@tonic-gate extern int genrsa_main(int argc,char *argv[]); 240Sstevel@tonic-gate extern int gendsa_main(int argc,char *argv[]); 250Sstevel@tonic-gate extern int s_server_main(int argc,char *argv[]); 260Sstevel@tonic-gate extern int s_client_main(int argc,char *argv[]); 270Sstevel@tonic-gate extern int speed_main(int argc,char *argv[]); 280Sstevel@tonic-gate extern int s_time_main(int argc,char *argv[]); 290Sstevel@tonic-gate extern int version_main(int argc,char *argv[]); 300Sstevel@tonic-gate extern int pkcs7_main(int argc,char *argv[]); 310Sstevel@tonic-gate extern int crl2pkcs7_main(int argc,char *argv[]); 320Sstevel@tonic-gate extern int sess_id_main(int argc,char *argv[]); 330Sstevel@tonic-gate extern int ciphers_main(int argc,char *argv[]); 340Sstevel@tonic-gate extern int nseq_main(int argc,char *argv[]); 350Sstevel@tonic-gate extern int pkcs12_main(int argc,char *argv[]); 360Sstevel@tonic-gate extern int pkcs8_main(int argc,char *argv[]); 370Sstevel@tonic-gate extern int spkac_main(int argc,char *argv[]); 380Sstevel@tonic-gate extern int smime_main(int argc,char *argv[]); 390Sstevel@tonic-gate extern int rand_main(int argc,char *argv[]); 400Sstevel@tonic-gate extern int engine_main(int argc,char *argv[]); 410Sstevel@tonic-gate extern int ocsp_main(int argc,char *argv[]); 42*2139Sjp161948 extern int prime_main(int argc,char *argv[]); 430Sstevel@tonic-gate 440Sstevel@tonic-gate #define FUNC_TYPE_GENERAL 1 450Sstevel@tonic-gate #define FUNC_TYPE_MD 2 460Sstevel@tonic-gate #define FUNC_TYPE_CIPHER 3 470Sstevel@tonic-gate 480Sstevel@tonic-gate typedef struct { 490Sstevel@tonic-gate int type; 50*2139Sjp161948 const char *name; 51*2139Sjp161948 int (*func)(int argc,char *argv[]); 520Sstevel@tonic-gate } FUNCTION; 530Sstevel@tonic-gate 540Sstevel@tonic-gate FUNCTION functions[] = { 550Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"verify",verify_main}, 560Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"asn1parse",asn1parse_main}, 570Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"req",req_main}, 580Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"dgst",dgst_main}, 590Sstevel@tonic-gate #ifndef OPENSSL_NO_DH 600Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"dh",dh_main}, 610Sstevel@tonic-gate #endif 620Sstevel@tonic-gate #ifndef OPENSSL_NO_DH 630Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"dhparam",dhparam_main}, 640Sstevel@tonic-gate #endif 650Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"enc",enc_main}, 660Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"passwd",passwd_main}, 670Sstevel@tonic-gate #ifndef OPENSSL_NO_DH 680Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"gendh",gendh_main}, 690Sstevel@tonic-gate #endif 700Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"errstr",errstr_main}, 710Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"ca",ca_main}, 720Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"crl",crl_main}, 730Sstevel@tonic-gate #ifndef OPENSSL_NO_RSA 740Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"rsa",rsa_main}, 750Sstevel@tonic-gate #endif 760Sstevel@tonic-gate #ifndef OPENSSL_NO_RSA 770Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"rsautl",rsautl_main}, 780Sstevel@tonic-gate #endif 790Sstevel@tonic-gate #ifndef OPENSSL_NO_DSA 800Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"dsa",dsa_main}, 810Sstevel@tonic-gate #endif 820Sstevel@tonic-gate #ifndef OPENSSL_NO_DSA 830Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"dsaparam",dsaparam_main}, 840Sstevel@tonic-gate #endif 85*2139Sjp161948 #ifndef OPENSSL_NO_EC 86*2139Sjp161948 {FUNC_TYPE_GENERAL,"ec",ec_main}, 87*2139Sjp161948 #endif 88*2139Sjp161948 #ifndef OPENSSL_NO_EC 89*2139Sjp161948 {FUNC_TYPE_GENERAL,"ecparam",ecparam_main}, 90*2139Sjp161948 #endif 910Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"x509",x509_main}, 920Sstevel@tonic-gate #ifndef OPENSSL_NO_RSA 930Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"genrsa",genrsa_main}, 940Sstevel@tonic-gate #endif 950Sstevel@tonic-gate #ifndef OPENSSL_NO_DSA 960Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"gendsa",gendsa_main}, 970Sstevel@tonic-gate #endif 980Sstevel@tonic-gate #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3)) 990Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"s_server",s_server_main}, 1000Sstevel@tonic-gate #endif 1010Sstevel@tonic-gate #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3)) 1020Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"s_client",s_client_main}, 1030Sstevel@tonic-gate #endif 1040Sstevel@tonic-gate #ifndef OPENSSL_NO_SPEED 1050Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"speed",speed_main}, 1060Sstevel@tonic-gate #endif 1070Sstevel@tonic-gate #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3)) 1080Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"s_time",s_time_main}, 1090Sstevel@tonic-gate #endif 1100Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"version",version_main}, 1110Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"pkcs7",pkcs7_main}, 1120Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"crl2pkcs7",crl2pkcs7_main}, 1130Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"sess_id",sess_id_main}, 1140Sstevel@tonic-gate #if !defined(OPENSSL_NO_SOCK) && !(defined(OPENSSL_NO_SSL2) && defined(OPENSSL_NO_SSL3)) 1150Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"ciphers",ciphers_main}, 1160Sstevel@tonic-gate #endif 1170Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"nseq",nseq_main}, 1180Sstevel@tonic-gate #if !defined(OPENSSL_NO_DES) && !defined(OPENSSL_NO_SHA1) 1190Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"pkcs12",pkcs12_main}, 1200Sstevel@tonic-gate #endif 1210Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"pkcs8",pkcs8_main}, 1220Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"spkac",spkac_main}, 1230Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"smime",smime_main}, 1240Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"rand",rand_main}, 1250Sstevel@tonic-gate #ifndef OPENSSL_NO_ENGINE 1260Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"engine",engine_main}, 1270Sstevel@tonic-gate #endif 1280Sstevel@tonic-gate {FUNC_TYPE_GENERAL,"ocsp",ocsp_main}, 129*2139Sjp161948 {FUNC_TYPE_GENERAL,"prime",prime_main}, 1300Sstevel@tonic-gate #ifndef OPENSSL_NO_MD2 1310Sstevel@tonic-gate {FUNC_TYPE_MD,"md2",dgst_main}, 1320Sstevel@tonic-gate #endif 1330Sstevel@tonic-gate #ifndef OPENSSL_NO_MD4 1340Sstevel@tonic-gate {FUNC_TYPE_MD,"md4",dgst_main}, 1350Sstevel@tonic-gate #endif 1360Sstevel@tonic-gate #ifndef OPENSSL_NO_MD5 1370Sstevel@tonic-gate {FUNC_TYPE_MD,"md5",dgst_main}, 1380Sstevel@tonic-gate #endif 1390Sstevel@tonic-gate #ifndef OPENSSL_NO_SHA 1400Sstevel@tonic-gate {FUNC_TYPE_MD,"sha",dgst_main}, 1410Sstevel@tonic-gate #endif 1420Sstevel@tonic-gate #ifndef OPENSSL_NO_SHA1 1430Sstevel@tonic-gate {FUNC_TYPE_MD,"sha1",dgst_main}, 1440Sstevel@tonic-gate #endif 1450Sstevel@tonic-gate #ifndef OPENSSL_NO_MDC2 1460Sstevel@tonic-gate {FUNC_TYPE_MD,"mdc2",dgst_main}, 1470Sstevel@tonic-gate #endif 1480Sstevel@tonic-gate #ifndef OPENSSL_NO_RMD160 1490Sstevel@tonic-gate {FUNC_TYPE_MD,"rmd160",dgst_main}, 1500Sstevel@tonic-gate #endif 1510Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1520Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-128-cbc",enc_main}, 1530Sstevel@tonic-gate #endif 1540Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1550Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-128-ecb",enc_main}, 1560Sstevel@tonic-gate #endif 1570Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1580Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-192-cbc",enc_main}, 1590Sstevel@tonic-gate #endif 1600Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1610Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-192-ecb",enc_main}, 1620Sstevel@tonic-gate #endif 1630Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1640Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-256-cbc",enc_main}, 1650Sstevel@tonic-gate #endif 1660Sstevel@tonic-gate #ifndef OPENSSL_NO_AES 1670Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"aes-256-ecb",enc_main}, 1680Sstevel@tonic-gate #endif 1690Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"base64",enc_main}, 1700Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 1710Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des",enc_main}, 1720Sstevel@tonic-gate #endif 1730Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 1740Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des3",enc_main}, 1750Sstevel@tonic-gate #endif 1760Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 1770Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"desx",enc_main}, 1780Sstevel@tonic-gate #endif 1790Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 1800Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"idea",enc_main}, 1810Sstevel@tonic-gate #endif 1820Sstevel@tonic-gate #ifndef OPENSSL_NO_RC4 1830Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc4",enc_main}, 1840Sstevel@tonic-gate #endif 1850Sstevel@tonic-gate #ifndef OPENSSL_NO_RC4 1860Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc4-40",enc_main}, 1870Sstevel@tonic-gate #endif 1880Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 1890Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2",enc_main}, 1900Sstevel@tonic-gate #endif 1910Sstevel@tonic-gate #ifndef OPENSSL_NO_BF 1920Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"bf",enc_main}, 1930Sstevel@tonic-gate #endif 1940Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 1950Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast",enc_main}, 1960Sstevel@tonic-gate #endif 1970Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 1980Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc5",enc_main}, 1990Sstevel@tonic-gate #endif 2000Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2010Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ecb",enc_main}, 2020Sstevel@tonic-gate #endif 2030Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2040Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede",enc_main}, 2050Sstevel@tonic-gate #endif 2060Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2070Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede3",enc_main}, 2080Sstevel@tonic-gate #endif 2090Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2100Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-cbc",enc_main}, 2110Sstevel@tonic-gate #endif 2120Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2130Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede-cbc",enc_main}, 2140Sstevel@tonic-gate #endif 2150Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2160Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede3-cbc",enc_main}, 2170Sstevel@tonic-gate #endif 2180Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2190Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-cfb",enc_main}, 2200Sstevel@tonic-gate #endif 2210Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2220Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede-cfb",enc_main}, 2230Sstevel@tonic-gate #endif 2240Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2250Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede3-cfb",enc_main}, 2260Sstevel@tonic-gate #endif 2270Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2280Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ofb",enc_main}, 2290Sstevel@tonic-gate #endif 2300Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2310Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main}, 2320Sstevel@tonic-gate #endif 2330Sstevel@tonic-gate #ifndef OPENSSL_NO_DES 2340Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main}, 2350Sstevel@tonic-gate #endif 2360Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 2370Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"idea-cbc",enc_main}, 2380Sstevel@tonic-gate #endif 2390Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 2400Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"idea-ecb",enc_main}, 2410Sstevel@tonic-gate #endif 2420Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 2430Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"idea-cfb",enc_main}, 2440Sstevel@tonic-gate #endif 2450Sstevel@tonic-gate #ifndef OPENSSL_NO_IDEA 2460Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"idea-ofb",enc_main}, 2470Sstevel@tonic-gate #endif 2480Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2490Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-cbc",enc_main}, 2500Sstevel@tonic-gate #endif 2510Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2520Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-ecb",enc_main}, 2530Sstevel@tonic-gate #endif 2540Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2550Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-cfb",enc_main}, 2560Sstevel@tonic-gate #endif 2570Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2580Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-ofb",enc_main}, 2590Sstevel@tonic-gate #endif 2600Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2610Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-64-cbc",enc_main}, 2620Sstevel@tonic-gate #endif 2630Sstevel@tonic-gate #ifndef OPENSSL_NO_RC2 2640Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc2-40-cbc",enc_main}, 2650Sstevel@tonic-gate #endif 2660Sstevel@tonic-gate #ifndef OPENSSL_NO_BF 2670Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"bf-cbc",enc_main}, 2680Sstevel@tonic-gate #endif 2690Sstevel@tonic-gate #ifndef OPENSSL_NO_BF 2700Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"bf-ecb",enc_main}, 2710Sstevel@tonic-gate #endif 2720Sstevel@tonic-gate #ifndef OPENSSL_NO_BF 2730Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"bf-cfb",enc_main}, 2740Sstevel@tonic-gate #endif 2750Sstevel@tonic-gate #ifndef OPENSSL_NO_BF 2760Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"bf-ofb",enc_main}, 2770Sstevel@tonic-gate #endif 2780Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 2790Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast5-cbc",enc_main}, 2800Sstevel@tonic-gate #endif 2810Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 2820Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast5-ecb",enc_main}, 2830Sstevel@tonic-gate #endif 2840Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 2850Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast5-cfb",enc_main}, 2860Sstevel@tonic-gate #endif 2870Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 2880Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast5-ofb",enc_main}, 2890Sstevel@tonic-gate #endif 2900Sstevel@tonic-gate #ifndef OPENSSL_NO_CAST 2910Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"cast-cbc",enc_main}, 2920Sstevel@tonic-gate #endif 2930Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 2940Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc5-cbc",enc_main}, 2950Sstevel@tonic-gate #endif 2960Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 2970Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc5-ecb",enc_main}, 2980Sstevel@tonic-gate #endif 2990Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 3000Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc5-cfb",enc_main}, 3010Sstevel@tonic-gate #endif 3020Sstevel@tonic-gate #ifndef OPENSSL_NO_RC5 3030Sstevel@tonic-gate {FUNC_TYPE_CIPHER,"rc5-ofb",enc_main}, 3040Sstevel@tonic-gate #endif 3050Sstevel@tonic-gate {0,NULL,NULL} 3060Sstevel@tonic-gate }; 307