Reorder inclusion of header files:
authorLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Jul 2002 07:01:54 +0000 (07:01 +0000)
committerLutz Jänicke <jaenicke@openssl.org>
Wed, 10 Jul 2002 07:01:54 +0000 (07:01 +0000)
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:

22 files changed:
apps/nseq.c
apps/ocsp.c
apps/openssl.c
crypto/engine/hw_ncipher.c
crypto/engine/hw_sureware.c
crypto/evp/evp_pbe.c
crypto/evp/p5_crpt.c
crypto/evp/p5_crpt2.c
ssl/s23_clnt.c
ssl/s23_pkt.c
ssl/s23_srvr.c
ssl/s3_both.c
ssl/s3_clnt.c
ssl/s3_enc.c
ssl/s3_pkt.c
ssl/s3_srvr.c
ssl/ssl_asn1.c
ssl/ssl_lib.c
ssl/ssl_rsa.c
ssl/t1_clnt.c
ssl/t1_enc.c
ssl/t1_srvr.c

index 93adcdfef8d65754c4a52472060d4ed3b0586859..c26f62cb6137d07c2a26d8b7dd56c3f559d6caeb 100644 (file)
@@ -58,9 +58,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "apps.h"
 #include <openssl/pem.h>
 #include <openssl/err.h>
-#include "apps.h"
 
 #undef PROG
 #define PROG nseq_main
index 50af2a56f1fd479ffc66775aa8d1df826e95dff4..49a156a1cfdc773994dde772a66f95530b9332d8 100644 (file)
 
 #include <stdio.h>
 #include <string.h>
+#include "apps.h"
 #include <openssl/pem.h>
 #include <openssl/ocsp.h>
 #include <openssl/err.h>
 #include <openssl/ssl.h>
-#include "apps.h"
 
 /* Maximum leeway in validity period: default 5 minutes */
 #define MAX_VALIDITY_PERIOD    (5 * 60)
index c17458ef7cf426551c934cbff324a79364735bc0..1c4a4291aa33f857754b6e01dc134f19e71208c8 100644 (file)
 #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>
 #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>
index 7c1141afa9b5e7307d2f259d13fe8b78c4e55754..4fef86fcc5519cf22799afb70054927b3b5e8345 100644 (file)
@@ -59,9 +59,9 @@
 
 #include <stdio.h>
 #include <string.h>
+#include "cryptlib.h"
 #include <openssl/crypto.h>
 #include <openssl/pem.h>
-#include "cryptlib.h"
 #include <openssl/dso.h>
 #include <openssl/engine.h>
 #include <openssl/ui.h>
index 27d380e8b97db1d676825ca14a3775d610647e46..89f708661d2c5d057d64c418a581ec0d4713d9c5 100644 (file)
@@ -51,9 +51,9 @@
 ====================================================================*/
 
 #include <stdio.h>
+#include "cryptlib.h"
 #include <openssl/crypto.h>
 #include <openssl/pem.h>
-#include "cryptlib.h"
 #include <openssl/dso.h>
 #include "eng_int.h"
 #include "engine.h"
index 06afb9d152a1c3f4301e72e6cdca550569c66c6c..bcd4d29f8586a37cce0139451dcbe2f16728f3a3 100644 (file)
@@ -57,9 +57,9 @@
  */
 
 #include <stdio.h>
+#include "cryptlib.h"
 #include <openssl/evp.h>
 #include <openssl/x509.h>
-#include "cryptlib.h"
 
 /* Password based encryption (PBE) functions */
 
index 113c60fedb860d046cb8a8400feced9f9f28a69e..27a8286489fd9a1bc93aa4289edf2c8f43ee0d07 100644 (file)
@@ -58,9 +58,9 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include "cryptlib.h"
 #include <openssl/x509.h>
 #include <openssl/evp.h>
-#include "cryptlib.h"
 
 /* PKCS#5 v1.5 compatible PBE functions: see PKCS#5 v2.0 for more info.
  */
index 7881860b53eee7690d4c1ccab331eb053682bc1d..7485d6a278cd67780204e93f8add42b863ad2c29 100644 (file)
 #if !defined(OPENSSL_NO_HMAC) && !defined(OPENSSL_NO_SHA)
 #include <stdio.h>
 #include <stdlib.h>
+#include "cryptlib.h"
 #include <openssl/x509.h>
 #include <openssl/evp.h>
 #include <openssl/hmac.h>
-#include "cryptlib.h"
 
 /* set this to print out info about the keygen algorithm */
 /* #define DEBUG_PKCS5V2 */
index b2be8340fb30ab8fc7698078b7daf9146921fa87..019e9aecee0e2b46f0daf18270f65ac62b8c3ad5 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
-#include "ssl_locl.h"
 
 static SSL_METHOD *ssl23_get_client_method(int ver);
 static int ssl23_client_hello(SSL *s);
index f45e1ce3d806ce0baa7c6abe86b1d09ca83a03a1..4ca6a1b2584587fd84df16d1a90197b32612d587 100644 (file)
@@ -59,9 +59,9 @@
 #include <stdio.h>
 #include <errno.h>
 #define USE_SOCKETS
+#include "ssl_locl.h"
 #include <openssl/evp.h>
 #include <openssl/buffer.h>
-#include "ssl_locl.h"
 
 int ssl23_write_bytes(SSL *s)
        {
index 9e89cc7f9a24bacbe61834fff9aa86bb2b5dad01..8743b61cbb62392e8bf382d223027e39d3e0a5c6 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
-#include "ssl_locl.h"
 
 static SSL_METHOD *ssl23_get_server_method(int ver);
 int ssl23_get_client_hello(SSL *s);
index 58a24cd8839d196aece95a724283139025d99b62..8864366f59228a97789c79fd3e0f6a3f368d6e59 100644 (file)
 #include <limits.h>
 #include <string.h>
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>
-#include "ssl_locl.h"
 
 /* send s->init_buf in records of type 'type' (SSL3_RT_HANDSHAKE or SSL3_RT_CHANGE_CIPHER_SPEC) */
 int ssl3_do_write(SSL *s, int type)
index e5853ede95b4f3f00a94d03a4811297276dbfde5..bd9ce5db55a3d8a310736e679d1d48fc3987638c 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
+#include "kssl_lcl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
-#include "ssl_locl.h"
-#include "kssl_lcl.h"
 #include <openssl/md5.h>
 
 static SSL_METHOD *ssl3_get_client_method(int ver);
index 2bb5be49f184fc669fa44ad1cc7e7665b4ad77e4..888a9a28684fe0a45dd1b1827901b83888092b03 100644 (file)
  */
 
 #include <stdio.h>
-#include <openssl/evp.h>
 #include "ssl_locl.h"
+#include <openssl/evp.h>
 #include <openssl/md5.h>
 
 static unsigned char ssl3_pad_1[48]={
index 43e8502b66f86c8b49f6250c08cfe8aa95cd4cdd..6ccea9aee5865955d5e65883edea47e76b8d8b14 100644 (file)
 #include <stdio.h>
 #include <errno.h>
 #define USE_SOCKETS
+#include "ssl_locl.h"
 #include <openssl/evp.h>
 #include <openssl/buffer.h>
-#include "ssl_locl.h"
 
 static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
                         unsigned int len, int create_empty_fragment);
index 99b6a869838d603f35848008803f8528c9f75a3c..270afb8166657611aeffdac7461bec0e8c3f2dce 100644 (file)
 
 
 #include <stdio.h>
+#include "ssl_locl.h"
+#include "kssl_lcl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>
 #include <openssl/krb5_asn.h>
-#include "ssl_locl.h"
-#include "kssl_lcl.h"
 #include <openssl/md5.h>
 
 static SSL_METHOD *ssl3_get_server_method(int ver);
index c5eeeb6bc59f82d16acbda7ff824b7dd819891c3..b1c2d1715325c552ec4a480d6e98ee221deb9410 100644 (file)
 
 #include <stdio.h>
 #include <stdlib.h>
+#include "ssl_locl.h"
 #include <openssl/asn1_mac.h>
 #include <openssl/objects.h>
 #include <openssl/x509.h>
-#include "ssl_locl.h"
 
 typedef struct ssl_session_asn1_st
        {
index df307a80c586a816d5d333e29aab952067e1657f..ab172aeaeccbf9f1fb574a992e4644434bef1de1 100644 (file)
 #  include <assert.h>
 #endif
 #include <stdio.h>
+#include "ssl_locl.h"
+#include "kssl_lcl.h"
 #include <openssl/objects.h>
 #include <openssl/lhash.h>
 #include <openssl/x509v3.h>
-#include "ssl_locl.h"
-#include "kssl_lcl.h"
 
 const char *SSL_version_str=OPENSSL_VERSION_TEXT;
 
index 1cf8e20934b04dc4e0ec994d696a30aef3141a1e..03828b66326262034b515d057469bcbcdfb198da 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/bio.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>
 #include <openssl/pem.h>
-#include "ssl_locl.h"
 
 static int ssl_set_cert(CERT *c, X509 *x509);
 static int ssl_set_pkey(CERT *c, EVP_PKEY *pkey);
index 9745630a008cf8e1a17e077846afd3650cac109e..9ad518f9f4d43234055301d37d970329c0ee2b83 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
-#include "ssl_locl.h"
 
 static SSL_METHOD *tls1_get_client_method(int ver);
 static SSL_METHOD *tls1_get_client_method(int ver)
index 1f6bb2edf39ae28caa16deba3883d820cf472435..0b512aa70af392a9d8b842982040ea464673c74a 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/comp.h>
 #include <openssl/evp.h>
 #include <openssl/hmac.h>
-#include "ssl_locl.h"
 #include <openssl/md5.h>
 
 static void tls1_P_hash(const EVP_MD *md, const unsigned char *sec,
index 996b7ca8e2ef54a6bc65288d94e9f9aa8e9810e0..6e765e587fe6d85fe6796ac3e651fd2076a0d520 100644 (file)
  */
 
 #include <stdio.h>
+#include "ssl_locl.h"
 #include <openssl/buffer.h>
 #include <openssl/rand.h>
 #include <openssl/objects.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>
-#include "ssl_locl.h"
 
 static SSL_METHOD *tls1_get_server_method(int ver);
 static SSL_METHOD *tls1_get_server_method(int ver)