|
|
c4366c |
List the compiled-in hardware support when passed the -a flag.
|
|
|
c4366c |
|
|
|
c4366c |
--- openssl-0.9.7-beta5/apps/version.c 2002-12-03 11:34:28.000000000 -0500
|
|
|
c4366c |
+++ openssl-0.9.7-beta5/apps/version.c 2002-12-11 19:29:10.000000000 -0500
|
|
|
c4366c |
@@ -130,6 +130,7 @@
|
|
|
c4366c |
#ifndef OPENSSL_NO_BF
|
|
|
c4366c |
# include <openssl/blowfish.h>
|
|
|
c4366c |
#endif
|
|
|
c4366c |
+#include <openssl/engine.h>
|
|
|
c4366c |
|
|
|
c4366c |
#undef PROG
|
|
|
c4366c |
#define PROG version_main
|
|
|
c4366c |
@@ -139,7 +140,7 @@
|
|
|
c4366c |
int MAIN(int argc, char **argv)
|
|
|
c4366c |
{
|
|
|
c4366c |
int i,ret=0;
|
|
|
c4366c |
- int cflags=0,version=0,date=0,options=0,platform=0,dir=0;
|
|
|
c4366c |
+ int cflags=0,version=0,date=0,options=0,platform=0,dir=0,engines=0;
|
|
|
c4366c |
|
|
|
c4366c |
apps_startup();
|
|
|
c4366c |
|
|
|
c4366c |
@@ -163,7 +164,7 @@
|
|
|
c4366c |
else if (strcmp(argv[i],"-d") == 0)
|
|
|
c4366c |
dir=1;
|
|
|
c4366c |
else if (strcmp(argv[i],"-a") == 0)
|
|
|
c4366c |
- date=version=cflags=options=platform=dir=1;
|
|
|
c4366c |
+ date=version=cflags=options=platform=dir=engines=1;
|
|
|
c4366c |
else
|
|
|
c4366c |
{
|
|
|
c4366c |
BIO_printf(bio_err,"usage:version -[avbofp]\n");
|
|
|
c4366c |
@@ -198,6 +199,18 @@
|
|
|
c4366c |
}
|
|
|
c4366c |
if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
|
|
|
c4366c |
if (dir) printf("%s\n",SSLeay_version(SSLEAY_DIR));
|
|
|
c4366c |
+ if (engines)
|
|
|
c4366c |
+ {
|
|
|
c4366c |
+ ENGINE *e;
|
|
|
c4366c |
+ printf("engines: ");
|
|
|
c4366c |
+ e = ENGINE_get_first();
|
|
|
c4366c |
+ while (e)
|
|
|
c4366c |
+ {
|
|
|
c4366c |
+ printf("%s ", ENGINE_get_id(e));
|
|
|
c4366c |
+ e = ENGINE_get_next(e);
|
|
|
c4366c |
+ }
|
|
|
c4366c |
+ printf("\n");
|
|
|
c4366c |
+ }
|
|
|
c4366c |
end:
|
|
|
c4366c |
apps_shutdown();
|
|
|
c4366c |
OPENSSL_EXIT(ret);
|