aboutsummaryrefslogtreecommitdiffstats
path: root/apps/version.c
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-11-22 11:13:10 +0000
committerBodo Möller <bodo@openssl.org>2001-11-22 11:13:10 +0000
commit4f94d1a8b18cb35914eb253f75d96fec410694ad (patch)
treed2445c30f264a55cbdf33547cf09b0491706e656 /apps/version.c
parent1d4581c2dd402b327b69dd73bc069df39113b53f (diff)
downloadopenssl-4f94d1a8b18cb35914eb253f75d96fec410694ad.tar.gz
check OPENSSL_NO_... before including header files that might be
disabled
Diffstat (limited to 'apps/version.c')
-rw-r--r--apps/version.c20
1 files changed, 15 insertions, 5 deletions
diff --git a/apps/version.c b/apps/version.c
index 656b96278b..6baf679b77 100644
--- a/apps/version.c
+++ b/apps/version.c
@@ -115,11 +115,21 @@
#include "apps.h"
#include <openssl/evp.h>
#include <openssl/crypto.h>
-#include <openssl/md2.h>
-#include <openssl/rc4.h>
-#include <openssl/des_old.h>
-#include <openssl/idea.h>
-#include <openssl/blowfish.h>
+#ifndef OPENSSL_NO_MD2
+# include <openssl/md2.h>
+#endif
+#ifndef OPENSSL_NO_RC4
+# include <openssl/rc4.h>
+#endif
+#ifndef OPENSSL_NO_DES
+# include <openssl/des_old.h>
+#endif
+#ifndef OPENSSL_NO_IDEA
+# include <openssl/idea.h>
+#endif
+#ifndef OPENSSL_NO_BF
+# include <openssl/blowfish.h>
+#endif
#undef PROG
#define PROG version_main