2000-02-06 05:28:09 +08:00
|
|
|
/* apps/progs.h */
|
|
|
|
/* automatically generated by progs.pl for openssl.c */
|
1999-04-15 07:47:41 +08:00
|
|
|
|
1998-12-21 18:52:47 +08:00
|
|
|
extern int verify_main(int argc,char *argv[]);
|
|
|
|
extern int asn1parse_main(int argc,char *argv[]);
|
|
|
|
extern int req_main(int argc,char *argv[]);
|
|
|
|
extern int dgst_main(int argc,char *argv[]);
|
|
|
|
extern int dh_main(int argc,char *argv[]);
|
2000-01-22 21:58:29 +08:00
|
|
|
extern int dhparam_main(int argc,char *argv[]);
|
1998-12-21 18:52:47 +08:00
|
|
|
extern int enc_main(int argc,char *argv[]);
|
2000-02-11 05:50:52 +08:00
|
|
|
extern int passwd_main(int argc,char *argv[]);
|
1998-12-21 18:52:47 +08:00
|
|
|
extern int gendh_main(int argc,char *argv[]);
|
|
|
|
extern int errstr_main(int argc,char *argv[]);
|
|
|
|
extern int ca_main(int argc,char *argv[]);
|
|
|
|
extern int crl_main(int argc,char *argv[]);
|
|
|
|
extern int rsa_main(int argc,char *argv[]);
|
|
|
|
extern int dsa_main(int argc,char *argv[]);
|
|
|
|
extern int dsaparam_main(int argc,char *argv[]);
|
|
|
|
extern int x509_main(int argc,char *argv[]);
|
|
|
|
extern int genrsa_main(int argc,char *argv[]);
|
1999-01-10 01:29:34 +08:00
|
|
|
extern int gendsa_main(int argc,char *argv[]);
|
1998-12-21 18:52:47 +08:00
|
|
|
extern int s_server_main(int argc,char *argv[]);
|
|
|
|
extern int s_client_main(int argc,char *argv[]);
|
|
|
|
extern int speed_main(int argc,char *argv[]);
|
|
|
|
extern int s_time_main(int argc,char *argv[]);
|
|
|
|
extern int version_main(int argc,char *argv[]);
|
|
|
|
extern int pkcs7_main(int argc,char *argv[]);
|
|
|
|
extern int crl2pkcs7_main(int argc,char *argv[]);
|
|
|
|
extern int sess_id_main(int argc,char *argv[]);
|
|
|
|
extern int ciphers_main(int argc,char *argv[]);
|
1999-01-30 07:34:19 +08:00
|
|
|
extern int nseq_main(int argc,char *argv[]);
|
1999-03-30 01:50:26 +08:00
|
|
|
extern int pkcs12_main(int argc,char *argv[]);
|
1999-06-05 08:32:16 +08:00
|
|
|
extern int pkcs8_main(int argc,char *argv[]);
|
1999-09-03 09:08:34 +08:00
|
|
|
extern int spkac_main(int argc,char *argv[]);
|
1999-12-05 08:40:59 +08:00
|
|
|
extern int smime_main(int argc,char *argv[]);
|
2000-03-01 07:47:01 +08:00
|
|
|
extern int rand_main(int argc,char *argv[]);
|
1998-12-21 18:52:47 +08:00
|
|
|
|
|
|
|
#define FUNC_TYPE_GENERAL 1
|
|
|
|
#define FUNC_TYPE_MD 2
|
|
|
|
#define FUNC_TYPE_CIPHER 3
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
int type;
|
|
|
|
char *name;
|
|
|
|
int (*func)();
|
|
|
|
} FUNCTION;
|
|
|
|
|
|
|
|
FUNCTION functions[] = {
|
|
|
|
{FUNC_TYPE_GENERAL,"verify",verify_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"asn1parse",asn1parse_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"req",req_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"dgst",dgst_main},
|
|
|
|
#ifndef NO_DH
|
|
|
|
{FUNC_TYPE_GENERAL,"dh",dh_main},
|
2000-01-22 21:58:29 +08:00
|
|
|
#endif
|
|
|
|
#ifndef NO_DH
|
|
|
|
{FUNC_TYPE_GENERAL,"dhparam",dhparam_main},
|
1998-12-21 18:52:47 +08:00
|
|
|
#endif
|
|
|
|
{FUNC_TYPE_GENERAL,"enc",enc_main},
|
2000-02-11 05:50:52 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"passwd",passwd_main},
|
1998-12-21 18:52:47 +08:00
|
|
|
#ifndef NO_DH
|
|
|
|
{FUNC_TYPE_GENERAL,"gendh",gendh_main},
|
|
|
|
#endif
|
|
|
|
{FUNC_TYPE_GENERAL,"errstr",errstr_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"ca",ca_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"crl",crl_main},
|
|
|
|
#ifndef NO_RSA
|
|
|
|
{FUNC_TYPE_GENERAL,"rsa",rsa_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DSA
|
|
|
|
{FUNC_TYPE_GENERAL,"dsa",dsa_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DSA
|
|
|
|
{FUNC_TYPE_GENERAL,"dsaparam",dsaparam_main},
|
|
|
|
#endif
|
|
|
|
{FUNC_TYPE_GENERAL,"x509",x509_main},
|
|
|
|
#ifndef NO_RSA
|
|
|
|
{FUNC_TYPE_GENERAL,"genrsa",genrsa_main},
|
|
|
|
#endif
|
1999-01-10 01:29:34 +08:00
|
|
|
#ifndef NO_DSA
|
|
|
|
{FUNC_TYPE_GENERAL,"gendsa",gendsa_main},
|
|
|
|
#endif
|
1999-10-26 09:56:29 +08:00
|
|
|
#if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3))
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"s_server",s_server_main},
|
|
|
|
#endif
|
1999-10-26 09:56:29 +08:00
|
|
|
#if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3))
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"s_client",s_client_main},
|
|
|
|
#endif
|
|
|
|
{FUNC_TYPE_GENERAL,"speed",speed_main},
|
1999-10-26 09:56:29 +08:00
|
|
|
#if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3))
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"s_time",s_time_main},
|
|
|
|
#endif
|
|
|
|
{FUNC_TYPE_GENERAL,"version",version_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"pkcs7",pkcs7_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"crl2pkcs7",crl2pkcs7_main},
|
|
|
|
{FUNC_TYPE_GENERAL,"sess_id",sess_id_main},
|
1999-08-03 05:44:49 +08:00
|
|
|
#if !defined(NO_SOCK) && !(defined(NO_SSL2) && defined(NO_SSL3))
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"ciphers",ciphers_main},
|
|
|
|
#endif
|
1999-01-30 07:34:19 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"nseq",nseq_main},
|
1999-08-03 05:44:49 +08:00
|
|
|
#if !defined(NO_DES) && !defined(NO_SHA1)
|
1999-03-30 01:50:26 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"pkcs12",pkcs12_main},
|
1999-08-03 05:44:49 +08:00
|
|
|
#endif
|
1999-06-05 08:32:16 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"pkcs8",pkcs8_main},
|
1999-09-03 09:08:34 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"spkac",spkac_main},
|
1999-12-05 08:40:59 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"smime",smime_main},
|
2000-03-01 07:47:01 +08:00
|
|
|
{FUNC_TYPE_GENERAL,"rand",rand_main},
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_MD,"md2",dgst_main},
|
|
|
|
{FUNC_TYPE_MD,"md5",dgst_main},
|
|
|
|
{FUNC_TYPE_MD,"sha",dgst_main},
|
|
|
|
{FUNC_TYPE_MD,"sha1",dgst_main},
|
|
|
|
{FUNC_TYPE_MD,"mdc2",dgst_main},
|
1998-12-21 19:00:56 +08:00
|
|
|
{FUNC_TYPE_MD,"rmd160",dgst_main},
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"base64",enc_main},
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des3",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"desx",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_IDEA
|
|
|
|
{FUNC_TYPE_CIPHER,"idea",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC4
|
|
|
|
{FUNC_TYPE_CIPHER,"rc4",enc_main},
|
|
|
|
#endif
|
1999-11-14 11:23:17 +08:00
|
|
|
#ifndef NO_RC4
|
|
|
|
{FUNC_TYPE_CIPHER,"rc4-40",enc_main},
|
|
|
|
#endif
|
1998-12-21 18:52:47 +08:00
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2",enc_main},
|
|
|
|
#endif
|
1999-04-27 19:56:15 +08:00
|
|
|
#ifndef NO_BF
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"bf",enc_main},
|
|
|
|
#endif
|
1998-12-21 18:56:39 +08:00
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC5
|
|
|
|
{FUNC_TYPE_CIPHER,"rc5",enc_main},
|
|
|
|
#endif
|
1998-12-21 18:52:47 +08:00
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ecb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede3",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede3-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede3-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ofb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede-ofb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_DES
|
|
|
|
{FUNC_TYPE_CIPHER,"des-ede3-ofb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_IDEA
|
|
|
|
{FUNC_TYPE_CIPHER,"idea-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_IDEA
|
|
|
|
{FUNC_TYPE_CIPHER,"idea-ecb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_IDEA
|
|
|
|
{FUNC_TYPE_CIPHER,"idea-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_IDEA
|
|
|
|
{FUNC_TYPE_CIPHER,"idea-ofb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-ecb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-ofb",enc_main},
|
|
|
|
#endif
|
1999-11-14 11:23:17 +08:00
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-64-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC2
|
|
|
|
{FUNC_TYPE_CIPHER,"rc2-40-cbc",enc_main},
|
|
|
|
#endif
|
1999-04-27 19:56:15 +08:00
|
|
|
#ifndef NO_BF
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"bf-cbc",enc_main},
|
|
|
|
#endif
|
1999-04-27 19:56:15 +08:00
|
|
|
#ifndef NO_BF
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"bf-ecb",enc_main},
|
|
|
|
#endif
|
1999-04-27 19:56:15 +08:00
|
|
|
#ifndef NO_BF
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"bf-cfb",enc_main},
|
|
|
|
#endif
|
1999-04-27 19:56:15 +08:00
|
|
|
#ifndef NO_BF
|
1998-12-21 18:52:47 +08:00
|
|
|
{FUNC_TYPE_CIPHER,"bf-ofb",enc_main},
|
1998-12-21 18:56:39 +08:00
|
|
|
#endif
|
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast5-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast5-ecb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast5-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast5-ofb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_CAST
|
|
|
|
{FUNC_TYPE_CIPHER,"cast-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC5
|
|
|
|
{FUNC_TYPE_CIPHER,"rc5-cbc",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC5
|
|
|
|
{FUNC_TYPE_CIPHER,"rc5-ecb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC5
|
|
|
|
{FUNC_TYPE_CIPHER,"rc5-cfb",enc_main},
|
|
|
|
#endif
|
|
|
|
#ifndef NO_RC5
|
|
|
|
{FUNC_TYPE_CIPHER,"rc5-ofb",enc_main},
|
1998-12-21 18:52:47 +08:00
|
|
|
#endif
|
|
|
|
{0,NULL,NULL}
|
|
|
|
};
|