Blame SOURCES/openssl-0.9.7-beta5-version-add-engines.patch

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