/[smeserver]/rpms/openssl/sme8/openssl-0.9.7-beta5-version-add-engines.patch
ViewVC logotype

Annotation of /rpms/openssl/sme8/openssl-0.9.7-beta5-version-add-engines.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Tue Feb 18 03:03:07 2014 UTC (10 years, 8 months ago) by wellsi
Branch: MAIN
CVS Tags: openssl-0_9_8e-28_el5_sme, openssl-0_9_8e-33_1_el5_sme, openssl-0_9_8e-32_1_el5_sme, openssl-0_9_8e-27_1_el5_sme, openssl-0_9_8e-27_el5_10_1, openssl-0_9_8e-31_1_el5_sme, HEAD
Branch point for: upstream
Initial import

1 wellsi 1.1 List the compiled-in hardware support when passed the -a flag.
2    
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
5     @@ -130,6 +130,7 @@
6     #ifndef OPENSSL_NO_BF
7     # include <openssl/blowfish.h>
8     #endif
9     +#include <openssl/engine.h>
10    
11     #undef PROG
12     #define PROG version_main
13     @@ -139,7 +140,7 @@
14     int MAIN(int argc, char **argv)
15     {
16     int i,ret=0;
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;
19    
20     apps_startup();
21    
22     @@ -163,7 +164,7 @@
23     else if (strcmp(argv[i],"-d") == 0)
24     dir=1;
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;
28     else
29     {
30     BIO_printf(bio_err,"usage:version -[avbofp]\n");
31     @@ -198,6 +199,18 @@
32     }
33     if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
34     if (dir) printf("%s\n",SSLeay_version(SSLEAY_DIR));
35     + if (engines)
36     + {
37     + ENGINE *e;
38     + printf("engines: ");
39     + e = ENGINE_get_first();
40     + while (e)
41     + {
42     + printf("%s ", ENGINE_get_id(e));
43     + e = ENGINE_get_next(e);
44     + }
45     + printf("\n");
46     + }
47     end:
48     apps_shutdown();
49     OPENSSL_EXIT(ret);

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed