projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in copy_email() which would not
[openssl.git]
/
apps
/
version.c
diff --git
a/apps/version.c
b/apps/version.c
index a567f34094c5e91c5340930639723427aec5370a..efa0d0d493b7a41c67c5e2cab30bbbd01e16f788 100644
(file)
--- a/
apps/version.c
+++ b/
apps/version.c
@@
-66,10
+66,12
@@
#undef PROG
#define PROG version_main
#undef PROG
#define PROG version_main
+int MAIN(int, char **);
+
int MAIN(int argc, char **argv)
{
int i,ret=0;
int MAIN(int argc, char **argv)
{
int i,ret=0;
- int cflags=0,version=0,date=0,options=0,platform=0;
+ int cflags=0,version=0,date=0,options=0,platform=0
,dir=0
;
apps_startup();
apps_startup();
@@
-90,8
+92,10
@@
int MAIN(int argc, char **argv)
options=1;
else if (strcmp(argv[i],"-p") == 0)
platform=1;
options=1;
else if (strcmp(argv[i],"-p") == 0)
platform=1;
+ else if (strcmp(argv[i],"-d") == 0)
+ dir=1;
else if (strcmp(argv[i],"-a") == 0)
else if (strcmp(argv[i],"-a") == 0)
- date=version=cflags=options=platform=1;
+ date=version=cflags=options=platform=
dir=
1;
else
{
BIO_printf(bio_err,"usage:version -[avbofp]\n");
else
{
BIO_printf(bio_err,"usage:version -[avbofp]\n");
@@
-107,24
+111,25
@@
int MAIN(int argc, char **argv)
{
printf("options: ");
printf("%s ",BN_options());
{
printf("options: ");
printf("%s ",BN_options());
-#ifndef NO_MD2
+#ifndef
OPENSSL_
NO_MD2
printf("%s ",MD2_options());
#endif
printf("%s ",MD2_options());
#endif
-#ifndef NO_RC4
+#ifndef
OPENSSL_
NO_RC4
printf("%s ",RC4_options());
#endif
printf("%s ",RC4_options());
#endif
-#ifndef NO_DES
+#ifndef
OPENSSL_
NO_DES
printf("%s ",des_options());
#endif
printf("%s ",des_options());
#endif
-#ifndef NO_IDEA
+#ifndef
OPENSSL_
NO_IDEA
printf("%s ",idea_options());
#endif
printf("%s ",idea_options());
#endif
-#ifndef NO_BF
+#ifndef
OPENSSL_
NO_BF
printf("%s ",BF_options());
#endif
printf("\n");
}
if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
printf("%s ",BF_options());
#endif
printf("\n");
}
if (cflags) printf("%s\n",SSLeay_version(SSLEAY_CFLAGS));
+ if (dir) printf("%s\n",SSLeay_version(SSLEAY_DIR));
end:
EXIT(ret);
}
end:
EXIT(ret);
}