summaryrefslogtreecommitdiffstats
path: root/apps/openssl.c
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2002-07-10 07:01:54 +0000
committerLutz Jänicke <jaenicke@openssl.org>2002-07-10 07:01:54 +0000
commit7b63c0fa8c309bed7848b5ca5810ae9e2f2fb3c1 (patch)
treeb17353bbf0eb8e7e4452b1c5044d84b6c0bc4e11 /apps/openssl.c
parent063a8905bfd53f3cc12a01789efc23c0ea6af053 (diff)
Reorder inclusion of header files:
des_old.h redefines crypt: #define crypt(b,s)\ DES_crypt((b),(s)) This scheme leads to failure, if header files with the OS's true definition of crypt() are processed _after_ des_old.h was processed. This is e.g. the case on HP-UX with unistd.h. As evp.h now again includes des.h (which includes des_old.h), this problem only came up after this modification. Solution: move header files (indirectly) including e_os.h before the header files (indirectly) including evp.h. Submitted by: Reviewed by: PR:
Diffstat (limited to 'apps/openssl.c')
-rw-r--r--apps/openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/openssl.c b/apps/openssl.c
index c17458ef7c..1c4a4291aa 100644
--- a/apps/openssl.c
+++ b/apps/openssl.c
@@ -114,6 +114,7 @@
#include <string.h>
#include <stdlib.h>
#define OPENSSL_C /* tells apps.h to use complete apps_startup() */
+#include "apps.h"
#include <openssl/bio.h>
#include <openssl/crypto.h>
#include <openssl/lhash.h>
@@ -123,7 +124,6 @@
#include <openssl/ssl.h>
#include <openssl/engine.h>
#define USE_SOCKETS /* needed for the _O_BINARY defs in the MS world */
-#include "apps.h"
#include "progs.h"
#include "s_apps.h"
#include <openssl/err.h>