1 List the compiled-in hardware support when passed the -a flag.
3 --- openssl-0.9.7-beta5/apps/version.c 2002-12-03 11:34:28.000000000 -0500
4 +++ openssl-0.9.7-beta5/apps/version.c 2002-12-11 19:29:10.000000000 -0500
7 # include <openssl/blowfish.h>
9 +#include <openssl/engine.h>
12 #define PROG version_main
14 int MAIN(int argc, char **argv)
17 - int cflags=0,version=0,date=0,options=0,platform=0,dir=0;
18 + int cflags=0,version=0,date=0,options=0,platform=0,dir=0,engines=0;
23 else if (strcmp(argv[i],"-d") == 0)
25 else if (strcmp(argv[i],"-a") == 0)
26 - date=version=cflags=options=platform=dir=1;
27 + date=version=cflags=options=platform=dir=engines=1;
30 BIO_printf(bio_err,"usage:version -[avbofp]\n");
33 if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
34 if (dir) printf("%s\n",SSLeay_version(SSLEAY_DIR));
38 + printf("engines: ");
39 + e = ENGINE_get_first();
42 + printf("%s ", ENGINE_get_id(e));
43 + e = ENGINE_get_next(e);