summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjsing <>2014-05-24 09:16:08 +0000
committerjsing <>2014-05-24 09:16:08 +0000
commitea9d79c4cd69bfc81e564708ee81e8e5285d79e2 (patch)
tree8c5241e44e7eefe5e9cdf6e12a5a011a5242602f /src
parentce3ee9f6ea8937b30c7cfc80a18da648c9ba5ac4 (diff)
downloadopenbsd-ea9d79c4cd69bfc81e564708ee81e8e5285d79e2.tar.gz
openbsd-ea9d79c4cd69bfc81e564708ee81e8e5285d79e2.tar.bz2
openbsd-ea9d79c4cd69bfc81e564708ee81e8e5285d79e2.zip
Almost nothing actually needs to include <openssl/e_os2.h>, however by
including it they get <openssl/opensslconf.h>. So instead of pulling in <openssl/e_os2.h>, just pull in <openssl/opensslconf.h>. "go ahead" miod@
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/aes/aes_locl.h2
-rw-r--r--src/lib/libcrypto/asn1/asn1.h4
-rw-r--r--src/lib/libcrypto/asn1/asn1t.h4
-rw-r--r--src/lib/libcrypto/bf/blowfish.h2
-rw-r--r--src/lib/libcrypto/bio/bio.h2
-rw-r--r--src/lib/libcrypto/bn/bn.h3
-rw-r--r--src/lib/libcrypto/conf/conf.h3
-rw-r--r--src/lib/libcrypto/crypto.h2
-rw-r--r--src/lib/libcrypto/des/des_locl.h5
-rw-r--r--src/lib/libcrypto/dh/dh.h2
-rw-r--r--src/lib/libcrypto/dsa/dsa.h2
-rw-r--r--src/lib/libcrypto/err/err.h2
-rw-r--r--src/lib/libcrypto/lhash/lhash.h3
-rw-r--r--src/lib/libcrypto/md4/md4.h3
-rw-r--r--src/lib/libcrypto/md5/md5.h3
-rw-r--r--src/lib/libcrypto/md5/md5_locl.h4
-rw-r--r--src/lib/libcrypto/objects/o_names.c3
-rw-r--r--src/lib/libcrypto/ossl_typ.h2
-rw-r--r--src/lib/libcrypto/pem/pem.h3
-rw-r--r--src/lib/libcrypto/pkcs7/pkcs7.h4
-rw-r--r--src/lib/libcrypto/ripemd/ripemd.h3
-rw-r--r--src/lib/libcrypto/sha/sha.h3
-rw-r--r--src/lib/libcrypto/ui/ui_lib.c5
-rw-r--r--src/lib/libcrypto/ui/ui_openssl.c2
-rw-r--r--src/lib/libcrypto/whrlpool/whrlpool.h3
-rw-r--r--src/lib/libcrypto/x509/x509.h3
-rw-r--r--src/lib/libssl/src/crypto/aes/aes_locl.h2
-rw-r--r--src/lib/libssl/src/crypto/asn1/asn1.h4
-rw-r--r--src/lib/libssl/src/crypto/asn1/asn1t.h4
-rw-r--r--src/lib/libssl/src/crypto/bf/blowfish.h2
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h2
-rw-r--r--src/lib/libssl/src/crypto/bn/bn.h3
-rw-r--r--src/lib/libssl/src/crypto/conf/conf.h3
-rw-r--r--src/lib/libssl/src/crypto/crypto.h2
-rw-r--r--src/lib/libssl/src/crypto/des/des_locl.h5
-rw-r--r--src/lib/libssl/src/crypto/dh/dh.h2
-rw-r--r--src/lib/libssl/src/crypto/dsa/dsa.h2
-rw-r--r--src/lib/libssl/src/crypto/err/err.h2
-rw-r--r--src/lib/libssl/src/crypto/lhash/lhash.h3
-rw-r--r--src/lib/libssl/src/crypto/md4/md4.h3
-rw-r--r--src/lib/libssl/src/crypto/md5/md5.h3
-rw-r--r--src/lib/libssl/src/crypto/md5/md5_locl.h4
-rw-r--r--src/lib/libssl/src/crypto/objects/o_names.c3
-rw-r--r--src/lib/libssl/src/crypto/ossl_typ.h2
-rw-r--r--src/lib/libssl/src/crypto/pem/pem.h3
-rw-r--r--src/lib/libssl/src/crypto/pkcs7/pkcs7.h4
-rw-r--r--src/lib/libssl/src/crypto/ripemd/ripemd.h3
-rw-r--r--src/lib/libssl/src/crypto/sha/sha.h3
-rw-r--r--src/lib/libssl/src/crypto/ui/ui_lib.c5
-rw-r--r--src/lib/libssl/src/crypto/ui/ui_openssl.c2
-rw-r--r--src/lib/libssl/src/crypto/whrlpool/whrlpool.h3
-rw-r--r--src/lib/libssl/src/crypto/x509/x509.h3
52 files changed, 98 insertions, 56 deletions
diff --git a/src/lib/libcrypto/aes/aes_locl.h b/src/lib/libcrypto/aes/aes_locl.h
index ac2fbff465..3067547444 100644
--- a/src/lib/libcrypto/aes/aes_locl.h
+++ b/src/lib/libcrypto/aes/aes_locl.h
@@ -52,7 +52,7 @@
52#ifndef HEADER_AES_LOCL_H 52#ifndef HEADER_AES_LOCL_H
53#define HEADER_AES_LOCL_H 53#define HEADER_AES_LOCL_H
54 54
55#include <openssl/e_os2.h> 55#include <openssl/opensslconf.h>
56 56
57#ifdef OPENSSL_NO_AES 57#ifdef OPENSSL_NO_AES
58#error AES is disabled. 58#error AES is disabled.
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index e7264ccb09..5d2a7b4418 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -60,7 +60,9 @@
60#define HEADER_ASN1_H 60#define HEADER_ASN1_H
61 61
62#include <time.h> 62#include <time.h>
63#include <openssl/e_os2.h> 63
64#include <openssl/opensslconf.h>
65
64#ifndef OPENSSL_NO_BIO 66#ifndef OPENSSL_NO_BIO
65#include <openssl/bio.h> 67#include <openssl/bio.h>
66#endif 68#endif
diff --git a/src/lib/libcrypto/asn1/asn1t.h b/src/lib/libcrypto/asn1/asn1t.h
index 21d41bc11e..1b9d4eb40c 100644
--- a/src/lib/libcrypto/asn1/asn1t.h
+++ b/src/lib/libcrypto/asn1/asn1t.h
@@ -59,7 +59,9 @@
59#define HEADER_ASN1T_H 59#define HEADER_ASN1T_H
60 60
61#include <stddef.h> 61#include <stddef.h>
62#include <openssl/e_os2.h> 62
63#include <openssl/opensslconf.h>
64
63#include <openssl/asn1.h> 65#include <openssl/asn1.h>
64 66
65/* ASN1 template defines, structures and functions */ 67/* ASN1 template defines, structures and functions */
diff --git a/src/lib/libcrypto/bf/blowfish.h b/src/lib/libcrypto/bf/blowfish.h
index 289c55b3af..be71374cb2 100644
--- a/src/lib/libcrypto/bf/blowfish.h
+++ b/src/lib/libcrypto/bf/blowfish.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_BLOWFISH_H 59#ifndef HEADER_BLOWFISH_H
60#define HEADER_BLOWFISH_H 60#define HEADER_BLOWFISH_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifdef __cplusplus 64#ifdef __cplusplus
65extern "C" { 65extern "C" {
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h
index ee3c1d5d22..67574d9fa4 100644
--- a/src/lib/libcrypto/bio/bio.h
+++ b/src/lib/libcrypto/bio/bio.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_BIO_H 59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H 60#define HEADER_BIO_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifndef OPENSSL_NO_FP_API 64#ifndef OPENSSL_NO_FP_API
65# include <stdio.h> 65# include <stdio.h>
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index 2a73bbbecc..ce04c4d217 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -125,7 +125,8 @@
125#ifndef HEADER_BN_H 125#ifndef HEADER_BN_H
126#define HEADER_BN_H 126#define HEADER_BN_H
127 127
128#include <openssl/e_os2.h> 128#include <openssl/opensslconf.h>
129
129#ifndef OPENSSL_NO_FP_API 130#ifndef OPENSSL_NO_FP_API
130#include <stdio.h> /* FILE */ 131#include <stdio.h> /* FILE */
131#endif 132#endif
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index 9c392a44ce..00efc12120 100644
--- a/src/lib/libcrypto/conf/conf.h
+++ b/src/lib/libcrypto/conf/conf.h
@@ -59,11 +59,12 @@
59#ifndef HEADER_CONF_H 59#ifndef HEADER_CONF_H
60#define HEADER_CONF_H 60#define HEADER_CONF_H
61 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/bio.h> 64#include <openssl/bio.h>
63#include <openssl/lhash.h> 65#include <openssl/lhash.h>
64#include <openssl/stack.h> 66#include <openssl/stack.h>
65#include <openssl/safestack.h> 67#include <openssl/safestack.h>
66#include <openssl/e_os2.h>
67 68
68#include <openssl/ossl_typ.h> 69#include <openssl/ossl_typ.h>
69 70
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h
index 00d3cc2aae..67bb46c7e5 100644
--- a/src/lib/libcrypto/crypto.h
+++ b/src/lib/libcrypto/crypto.h
@@ -119,7 +119,7 @@
119 119
120#include <stdlib.h> 120#include <stdlib.h>
121 121
122#include <openssl/e_os2.h> 122#include <openssl/opensslconf.h>
123 123
124#ifndef OPENSSL_NO_FP_API 124#ifndef OPENSSL_NO_FP_API
125#include <stdio.h> 125#include <stdio.h>
diff --git a/src/lib/libcrypto/des/des_locl.h b/src/lib/libcrypto/des/des_locl.h
index 1a21467b3e..cf28f59d4a 100644
--- a/src/lib/libcrypto/des/des_locl.h
+++ b/src/lib/libcrypto/des/des_locl.h
@@ -59,14 +59,15 @@
59#ifndef HEADER_DES_LOCL_H 59#ifndef HEADER_DES_LOCL_H
60#define HEADER_DES_LOCL_H 60#define HEADER_DES_LOCL_H
61 61
62#include <openssl/e_os2.h>
63
64#include <stdio.h> 62#include <stdio.h>
65#include <stdlib.h> 63#include <stdlib.h>
66#include <string.h> 64#include <string.h>
67 65
68#include <unistd.h> 66#include <unistd.h>
69#include <math.h> 67#include <math.h>
68
69#include <openssl/opensslconf.h>
70
70#include <openssl/des.h> 71#include <openssl/des.h>
71 72
72#define ITERATIONS 16 73#define ITERATIONS 16
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h
index ea59e610ef..36ca149b73 100644
--- a/src/lib/libcrypto/dh/dh.h
+++ b/src/lib/libcrypto/dh/dh.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_DH_H 59#ifndef HEADER_DH_H
60#define HEADER_DH_H 60#define HEADER_DH_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifdef OPENSSL_NO_DH 64#ifdef OPENSSL_NO_DH
65#error DH is disabled. 65#error DH is disabled.
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h
index a6f6d0b0b2..c871499201 100644
--- a/src/lib/libcrypto/dsa/dsa.h
+++ b/src/lib/libcrypto/dsa/dsa.h
@@ -65,7 +65,7 @@
65#ifndef HEADER_DSA_H 65#ifndef HEADER_DSA_H
66#define HEADER_DSA_H 66#define HEADER_DSA_H
67 67
68#include <openssl/e_os2.h> 68#include <openssl/opensslconf.h>
69 69
70#ifdef OPENSSL_NO_DSA 70#ifdef OPENSSL_NO_DSA
71#error DSA is disabled. 71#error DSA is disabled.
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h
index 8facd62711..601f56a624 100644
--- a/src/lib/libcrypto/err/err.h
+++ b/src/lib/libcrypto/err/err.h
@@ -112,7 +112,7 @@
112#ifndef HEADER_ERR_H 112#ifndef HEADER_ERR_H
113#define HEADER_ERR_H 113#define HEADER_ERR_H
114 114
115#include <openssl/e_os2.h> 115#include <openssl/opensslconf.h>
116 116
117#ifndef OPENSSL_NO_FP_API 117#ifndef OPENSSL_NO_FP_API
118#include <stdio.h> 118#include <stdio.h>
diff --git a/src/lib/libcrypto/lhash/lhash.h b/src/lib/libcrypto/lhash/lhash.h
index ea40ef184e..187a284243 100644
--- a/src/lib/libcrypto/lhash/lhash.h
+++ b/src/lib/libcrypto/lhash/lhash.h
@@ -63,7 +63,8 @@
63#ifndef HEADER_LHASH_H 63#ifndef HEADER_LHASH_H
64#define HEADER_LHASH_H 64#define HEADER_LHASH_H
65 65
66#include <openssl/e_os2.h> 66#include <openssl/opensslconf.h>
67
67#ifndef OPENSSL_NO_FP_API 68#ifndef OPENSSL_NO_FP_API
68#include <stdio.h> 69#include <stdio.h>
69#endif 70#endif
diff --git a/src/lib/libcrypto/md4/md4.h b/src/lib/libcrypto/md4/md4.h
index b241ea1e9b..9a9f0bcb1e 100644
--- a/src/lib/libcrypto/md4/md4.h
+++ b/src/lib/libcrypto/md4/md4.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_MD4_H 59#ifndef HEADER_MD4_H
60#define HEADER_MD4_H 60#define HEADER_MD4_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h
index 747bd929fd..08004aef6e 100644
--- a/src/lib/libcrypto/md5/md5.h
+++ b/src/lib/libcrypto/md5/md5.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_MD5_H 59#ifndef HEADER_MD5_H
60#define HEADER_MD5_H 60#define HEADER_MD5_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libcrypto/md5/md5_locl.h b/src/lib/libcrypto/md5/md5_locl.h
index 74d63d1f9c..3a6dce4da7 100644
--- a/src/lib/libcrypto/md5/md5_locl.h
+++ b/src/lib/libcrypto/md5/md5_locl.h
@@ -58,7 +58,9 @@
58 58
59#include <stdlib.h> 59#include <stdlib.h>
60#include <string.h> 60#include <string.h>
61#include <openssl/e_os2.h> 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/md5.h> 64#include <openssl/md5.h>
63 65
64#ifndef MD5_LONG_LOG2 66#ifndef MD5_LONG_LOG2
diff --git a/src/lib/libcrypto/objects/o_names.c b/src/lib/libcrypto/objects/o_names.c
index 9ed1de92c9..4f61b15441 100644
--- a/src/lib/libcrypto/objects/o_names.c
+++ b/src/lib/libcrypto/objects/o_names.c
@@ -2,11 +2,12 @@
2#include <stdlib.h> 2#include <stdlib.h>
3#include <string.h> 3#include <string.h>
4 4
5#include <openssl/opensslconf.h>
6
5#include <openssl/err.h> 7#include <openssl/err.h>
6#include <openssl/lhash.h> 8#include <openssl/lhash.h>
7#include <openssl/objects.h> 9#include <openssl/objects.h>
8#include <openssl/safestack.h> 10#include <openssl/safestack.h>
9#include <openssl/e_os2.h>
10 11
11/* I use the ex_data stuff to manage the identifiers for the obj_name_types 12/* I use the ex_data stuff to manage the identifiers for the obj_name_types
12 * that applications may define. I only really use the free function field. 13 * that applications may define. I only really use the free function field.
diff --git a/src/lib/libcrypto/ossl_typ.h b/src/lib/libcrypto/ossl_typ.h
index 3a7a66edef..85ba732ddd 100644
--- a/src/lib/libcrypto/ossl_typ.h
+++ b/src/lib/libcrypto/ossl_typ.h
@@ -55,7 +55,7 @@
55#ifndef HEADER_OPENSSL_TYPES_H 55#ifndef HEADER_OPENSSL_TYPES_H
56#define HEADER_OPENSSL_TYPES_H 56#define HEADER_OPENSSL_TYPES_H
57 57
58#include <openssl/e_os2.h> 58#include <openssl/opensslconf.h>
59 59
60#ifdef NO_ASN1_TYPEDEFS 60#ifdef NO_ASN1_TYPEDEFS
61#define ASN1_INTEGER ASN1_STRING 61#define ASN1_INTEGER ASN1_STRING
diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h
index 4af2db4b3c..38469f02df 100644
--- a/src/lib/libcrypto/pem/pem.h
+++ b/src/lib/libcrypto/pem/pem.h
@@ -59,7 +59,8 @@
59#ifndef HEADER_PEM_H 59#ifndef HEADER_PEM_H
60#define HEADER_PEM_H 60#define HEADER_PEM_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63
63#ifndef OPENSSL_NO_BIO 64#ifndef OPENSSL_NO_BIO
64#include <openssl/bio.h> 65#include <openssl/bio.h>
65#endif 66#endif
diff --git a/src/lib/libcrypto/pkcs7/pkcs7.h b/src/lib/libcrypto/pkcs7/pkcs7.h
index 04edb22f75..a1220aba00 100644
--- a/src/lib/libcrypto/pkcs7/pkcs7.h
+++ b/src/lib/libcrypto/pkcs7/pkcs7.h
@@ -59,10 +59,10 @@
59#ifndef HEADER_PKCS7_H 59#ifndef HEADER_PKCS7_H
60#define HEADER_PKCS7_H 60#define HEADER_PKCS7_H
61 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/asn1.h> 64#include <openssl/asn1.h>
63#include <openssl/bio.h> 65#include <openssl/bio.h>
64#include <openssl/e_os2.h>
65
66#include <openssl/ossl_typ.h> 66#include <openssl/ossl_typ.h>
67 67
68#ifdef __cplusplus 68#ifdef __cplusplus
diff --git a/src/lib/libcrypto/ripemd/ripemd.h b/src/lib/libcrypto/ripemd/ripemd.h
index f32cfae311..4b2132f06d 100644
--- a/src/lib/libcrypto/ripemd/ripemd.h
+++ b/src/lib/libcrypto/ripemd/ripemd.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_RIPEMD_H 59#ifndef HEADER_RIPEMD_H
60#define HEADER_RIPEMD_H 60#define HEADER_RIPEMD_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h
index c0c3c16c08..43c46b5e69 100644
--- a/src/lib/libcrypto/sha/sha.h
+++ b/src/lib/libcrypto/sha/sha.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_SHA_H 59#ifndef HEADER_SHA_H
60#define HEADER_SHA_H 60#define HEADER_SHA_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libcrypto/ui/ui_lib.c b/src/lib/libcrypto/ui/ui_lib.c
index 0d3a960052..db0ef98b72 100644
--- a/src/lib/libcrypto/ui/ui_lib.c
+++ b/src/lib/libcrypto/ui/ui_lib.c
@@ -57,8 +57,11 @@
57 */ 57 */
58 58
59#include <string.h> 59#include <string.h>
60
61#include <openssl/opensslconf.h>
62
60#include "cryptlib.h" 63#include "cryptlib.h"
61#include <openssl/e_os2.h> 64
62#include <openssl/buffer.h> 65#include <openssl/buffer.h>
63#include <openssl/ui.h> 66#include <openssl/ui.h>
64#include <openssl/err.h> 67#include <openssl/err.h>
diff --git a/src/lib/libcrypto/ui/ui_openssl.c b/src/lib/libcrypto/ui/ui_openssl.c
index 3b79ecaf02..4ad98e4d2e 100644
--- a/src/lib/libcrypto/ui/ui_openssl.c
+++ b/src/lib/libcrypto/ui/ui_openssl.c
@@ -114,7 +114,7 @@
114 * [including the GNU Public Licence.] 114 * [including the GNU Public Licence.]
115 */ 115 */
116 116
117#include <openssl/e_os2.h> 117#include <openssl/opensslconf.h>
118 118
119#include <signal.h> 119#include <signal.h>
120#include <stdio.h> 120#include <stdio.h>
diff --git a/src/lib/libcrypto/whrlpool/whrlpool.h b/src/lib/libcrypto/whrlpool/whrlpool.h
index 03c91da115..e417bfc19e 100644
--- a/src/lib/libcrypto/whrlpool/whrlpool.h
+++ b/src/lib/libcrypto/whrlpool/whrlpool.h
@@ -1,9 +1,10 @@
1#ifndef HEADER_WHRLPOOL_H 1#ifndef HEADER_WHRLPOOL_H
2#define HEADER_WHRLPOOL_H 2#define HEADER_WHRLPOOL_H
3 3
4#include <openssl/e_os2.h>
5#include <stddef.h> 4#include <stddef.h>
6 5
6#include <openssl/opensslconf.h>
7
7#ifdef __cplusplus 8#ifdef __cplusplus
8extern "C" { 9extern "C" {
9#endif 10#endif
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h
index 2b0435686a..6a29e4bd71 100644
--- a/src/lib/libcrypto/x509/x509.h
+++ b/src/lib/libcrypto/x509/x509.h
@@ -64,7 +64,8 @@
64#ifndef HEADER_X509_H 64#ifndef HEADER_X509_H
65#define HEADER_X509_H 65#define HEADER_X509_H
66 66
67#include <openssl/e_os2.h> 67#include <openssl/opensslconf.h>
68
68#ifndef OPENSSL_NO_BUFFER 69#ifndef OPENSSL_NO_BUFFER
69#include <openssl/buffer.h> 70#include <openssl/buffer.h>
70#endif 71#endif
diff --git a/src/lib/libssl/src/crypto/aes/aes_locl.h b/src/lib/libssl/src/crypto/aes/aes_locl.h
index ac2fbff465..3067547444 100644
--- a/src/lib/libssl/src/crypto/aes/aes_locl.h
+++ b/src/lib/libssl/src/crypto/aes/aes_locl.h
@@ -52,7 +52,7 @@
52#ifndef HEADER_AES_LOCL_H 52#ifndef HEADER_AES_LOCL_H
53#define HEADER_AES_LOCL_H 53#define HEADER_AES_LOCL_H
54 54
55#include <openssl/e_os2.h> 55#include <openssl/opensslconf.h>
56 56
57#ifdef OPENSSL_NO_AES 57#ifdef OPENSSL_NO_AES
58#error AES is disabled. 58#error AES is disabled.
diff --git a/src/lib/libssl/src/crypto/asn1/asn1.h b/src/lib/libssl/src/crypto/asn1/asn1.h
index e7264ccb09..5d2a7b4418 100644
--- a/src/lib/libssl/src/crypto/asn1/asn1.h
+++ b/src/lib/libssl/src/crypto/asn1/asn1.h
@@ -60,7 +60,9 @@
60#define HEADER_ASN1_H 60#define HEADER_ASN1_H
61 61
62#include <time.h> 62#include <time.h>
63#include <openssl/e_os2.h> 63
64#include <openssl/opensslconf.h>
65
64#ifndef OPENSSL_NO_BIO 66#ifndef OPENSSL_NO_BIO
65#include <openssl/bio.h> 67#include <openssl/bio.h>
66#endif 68#endif
diff --git a/src/lib/libssl/src/crypto/asn1/asn1t.h b/src/lib/libssl/src/crypto/asn1/asn1t.h
index 21d41bc11e..1b9d4eb40c 100644
--- a/src/lib/libssl/src/crypto/asn1/asn1t.h
+++ b/src/lib/libssl/src/crypto/asn1/asn1t.h
@@ -59,7 +59,9 @@
59#define HEADER_ASN1T_H 59#define HEADER_ASN1T_H
60 60
61#include <stddef.h> 61#include <stddef.h>
62#include <openssl/e_os2.h> 62
63#include <openssl/opensslconf.h>
64
63#include <openssl/asn1.h> 65#include <openssl/asn1.h>
64 66
65/* ASN1 template defines, structures and functions */ 67/* ASN1 template defines, structures and functions */
diff --git a/src/lib/libssl/src/crypto/bf/blowfish.h b/src/lib/libssl/src/crypto/bf/blowfish.h
index 289c55b3af..be71374cb2 100644
--- a/src/lib/libssl/src/crypto/bf/blowfish.h
+++ b/src/lib/libssl/src/crypto/bf/blowfish.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_BLOWFISH_H 59#ifndef HEADER_BLOWFISH_H
60#define HEADER_BLOWFISH_H 60#define HEADER_BLOWFISH_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifdef __cplusplus 64#ifdef __cplusplus
65extern "C" { 65extern "C" {
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h
index ee3c1d5d22..67574d9fa4 100644
--- a/src/lib/libssl/src/crypto/bio/bio.h
+++ b/src/lib/libssl/src/crypto/bio/bio.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_BIO_H 59#ifndef HEADER_BIO_H
60#define HEADER_BIO_H 60#define HEADER_BIO_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifndef OPENSSL_NO_FP_API 64#ifndef OPENSSL_NO_FP_API
65# include <stdio.h> 65# include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/bn/bn.h b/src/lib/libssl/src/crypto/bn/bn.h
index 2a73bbbecc..ce04c4d217 100644
--- a/src/lib/libssl/src/crypto/bn/bn.h
+++ b/src/lib/libssl/src/crypto/bn/bn.h
@@ -125,7 +125,8 @@
125#ifndef HEADER_BN_H 125#ifndef HEADER_BN_H
126#define HEADER_BN_H 126#define HEADER_BN_H
127 127
128#include <openssl/e_os2.h> 128#include <openssl/opensslconf.h>
129
129#ifndef OPENSSL_NO_FP_API 130#ifndef OPENSSL_NO_FP_API
130#include <stdio.h> /* FILE */ 131#include <stdio.h> /* FILE */
131#endif 132#endif
diff --git a/src/lib/libssl/src/crypto/conf/conf.h b/src/lib/libssl/src/crypto/conf/conf.h
index 9c392a44ce..00efc12120 100644
--- a/src/lib/libssl/src/crypto/conf/conf.h
+++ b/src/lib/libssl/src/crypto/conf/conf.h
@@ -59,11 +59,12 @@
59#ifndef HEADER_CONF_H 59#ifndef HEADER_CONF_H
60#define HEADER_CONF_H 60#define HEADER_CONF_H
61 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/bio.h> 64#include <openssl/bio.h>
63#include <openssl/lhash.h> 65#include <openssl/lhash.h>
64#include <openssl/stack.h> 66#include <openssl/stack.h>
65#include <openssl/safestack.h> 67#include <openssl/safestack.h>
66#include <openssl/e_os2.h>
67 68
68#include <openssl/ossl_typ.h> 69#include <openssl/ossl_typ.h>
69 70
diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h
index 00d3cc2aae..67bb46c7e5 100644
--- a/src/lib/libssl/src/crypto/crypto.h
+++ b/src/lib/libssl/src/crypto/crypto.h
@@ -119,7 +119,7 @@
119 119
120#include <stdlib.h> 120#include <stdlib.h>
121 121
122#include <openssl/e_os2.h> 122#include <openssl/opensslconf.h>
123 123
124#ifndef OPENSSL_NO_FP_API 124#ifndef OPENSSL_NO_FP_API
125#include <stdio.h> 125#include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/des/des_locl.h b/src/lib/libssl/src/crypto/des/des_locl.h
index 1a21467b3e..cf28f59d4a 100644
--- a/src/lib/libssl/src/crypto/des/des_locl.h
+++ b/src/lib/libssl/src/crypto/des/des_locl.h
@@ -59,14 +59,15 @@
59#ifndef HEADER_DES_LOCL_H 59#ifndef HEADER_DES_LOCL_H
60#define HEADER_DES_LOCL_H 60#define HEADER_DES_LOCL_H
61 61
62#include <openssl/e_os2.h>
63
64#include <stdio.h> 62#include <stdio.h>
65#include <stdlib.h> 63#include <stdlib.h>
66#include <string.h> 64#include <string.h>
67 65
68#include <unistd.h> 66#include <unistd.h>
69#include <math.h> 67#include <math.h>
68
69#include <openssl/opensslconf.h>
70
70#include <openssl/des.h> 71#include <openssl/des.h>
71 72
72#define ITERATIONS 16 73#define ITERATIONS 16
diff --git a/src/lib/libssl/src/crypto/dh/dh.h b/src/lib/libssl/src/crypto/dh/dh.h
index ea59e610ef..36ca149b73 100644
--- a/src/lib/libssl/src/crypto/dh/dh.h
+++ b/src/lib/libssl/src/crypto/dh/dh.h
@@ -59,7 +59,7 @@
59#ifndef HEADER_DH_H 59#ifndef HEADER_DH_H
60#define HEADER_DH_H 60#define HEADER_DH_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63 63
64#ifdef OPENSSL_NO_DH 64#ifdef OPENSSL_NO_DH
65#error DH is disabled. 65#error DH is disabled.
diff --git a/src/lib/libssl/src/crypto/dsa/dsa.h b/src/lib/libssl/src/crypto/dsa/dsa.h
index a6f6d0b0b2..c871499201 100644
--- a/src/lib/libssl/src/crypto/dsa/dsa.h
+++ b/src/lib/libssl/src/crypto/dsa/dsa.h
@@ -65,7 +65,7 @@
65#ifndef HEADER_DSA_H 65#ifndef HEADER_DSA_H
66#define HEADER_DSA_H 66#define HEADER_DSA_H
67 67
68#include <openssl/e_os2.h> 68#include <openssl/opensslconf.h>
69 69
70#ifdef OPENSSL_NO_DSA 70#ifdef OPENSSL_NO_DSA
71#error DSA is disabled. 71#error DSA is disabled.
diff --git a/src/lib/libssl/src/crypto/err/err.h b/src/lib/libssl/src/crypto/err/err.h
index 8facd62711..601f56a624 100644
--- a/src/lib/libssl/src/crypto/err/err.h
+++ b/src/lib/libssl/src/crypto/err/err.h
@@ -112,7 +112,7 @@
112#ifndef HEADER_ERR_H 112#ifndef HEADER_ERR_H
113#define HEADER_ERR_H 113#define HEADER_ERR_H
114 114
115#include <openssl/e_os2.h> 115#include <openssl/opensslconf.h>
116 116
117#ifndef OPENSSL_NO_FP_API 117#ifndef OPENSSL_NO_FP_API
118#include <stdio.h> 118#include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/lhash/lhash.h b/src/lib/libssl/src/crypto/lhash/lhash.h
index ea40ef184e..187a284243 100644
--- a/src/lib/libssl/src/crypto/lhash/lhash.h
+++ b/src/lib/libssl/src/crypto/lhash/lhash.h
@@ -63,7 +63,8 @@
63#ifndef HEADER_LHASH_H 63#ifndef HEADER_LHASH_H
64#define HEADER_LHASH_H 64#define HEADER_LHASH_H
65 65
66#include <openssl/e_os2.h> 66#include <openssl/opensslconf.h>
67
67#ifndef OPENSSL_NO_FP_API 68#ifndef OPENSSL_NO_FP_API
68#include <stdio.h> 69#include <stdio.h>
69#endif 70#endif
diff --git a/src/lib/libssl/src/crypto/md4/md4.h b/src/lib/libssl/src/crypto/md4/md4.h
index b241ea1e9b..9a9f0bcb1e 100644
--- a/src/lib/libssl/src/crypto/md4/md4.h
+++ b/src/lib/libssl/src/crypto/md4/md4.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_MD4_H 59#ifndef HEADER_MD4_H
60#define HEADER_MD4_H 60#define HEADER_MD4_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libssl/src/crypto/md5/md5.h b/src/lib/libssl/src/crypto/md5/md5.h
index 747bd929fd..08004aef6e 100644
--- a/src/lib/libssl/src/crypto/md5/md5.h
+++ b/src/lib/libssl/src/crypto/md5/md5.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_MD5_H 59#ifndef HEADER_MD5_H
60#define HEADER_MD5_H 60#define HEADER_MD5_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libssl/src/crypto/md5/md5_locl.h b/src/lib/libssl/src/crypto/md5/md5_locl.h
index 74d63d1f9c..3a6dce4da7 100644
--- a/src/lib/libssl/src/crypto/md5/md5_locl.h
+++ b/src/lib/libssl/src/crypto/md5/md5_locl.h
@@ -58,7 +58,9 @@
58 58
59#include <stdlib.h> 59#include <stdlib.h>
60#include <string.h> 60#include <string.h>
61#include <openssl/e_os2.h> 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/md5.h> 64#include <openssl/md5.h>
63 65
64#ifndef MD5_LONG_LOG2 66#ifndef MD5_LONG_LOG2
diff --git a/src/lib/libssl/src/crypto/objects/o_names.c b/src/lib/libssl/src/crypto/objects/o_names.c
index 9ed1de92c9..4f61b15441 100644
--- a/src/lib/libssl/src/crypto/objects/o_names.c
+++ b/src/lib/libssl/src/crypto/objects/o_names.c
@@ -2,11 +2,12 @@
2#include <stdlib.h> 2#include <stdlib.h>
3#include <string.h> 3#include <string.h>
4 4
5#include <openssl/opensslconf.h>
6
5#include <openssl/err.h> 7#include <openssl/err.h>
6#include <openssl/lhash.h> 8#include <openssl/lhash.h>
7#include <openssl/objects.h> 9#include <openssl/objects.h>
8#include <openssl/safestack.h> 10#include <openssl/safestack.h>
9#include <openssl/e_os2.h>
10 11
11/* I use the ex_data stuff to manage the identifiers for the obj_name_types 12/* I use the ex_data stuff to manage the identifiers for the obj_name_types
12 * that applications may define. I only really use the free function field. 13 * that applications may define. I only really use the free function field.
diff --git a/src/lib/libssl/src/crypto/ossl_typ.h b/src/lib/libssl/src/crypto/ossl_typ.h
index 3a7a66edef..85ba732ddd 100644
--- a/src/lib/libssl/src/crypto/ossl_typ.h
+++ b/src/lib/libssl/src/crypto/ossl_typ.h
@@ -55,7 +55,7 @@
55#ifndef HEADER_OPENSSL_TYPES_H 55#ifndef HEADER_OPENSSL_TYPES_H
56#define HEADER_OPENSSL_TYPES_H 56#define HEADER_OPENSSL_TYPES_H
57 57
58#include <openssl/e_os2.h> 58#include <openssl/opensslconf.h>
59 59
60#ifdef NO_ASN1_TYPEDEFS 60#ifdef NO_ASN1_TYPEDEFS
61#define ASN1_INTEGER ASN1_STRING 61#define ASN1_INTEGER ASN1_STRING
diff --git a/src/lib/libssl/src/crypto/pem/pem.h b/src/lib/libssl/src/crypto/pem/pem.h
index 4af2db4b3c..38469f02df 100644
--- a/src/lib/libssl/src/crypto/pem/pem.h
+++ b/src/lib/libssl/src/crypto/pem/pem.h
@@ -59,7 +59,8 @@
59#ifndef HEADER_PEM_H 59#ifndef HEADER_PEM_H
60#define HEADER_PEM_H 60#define HEADER_PEM_H
61 61
62#include <openssl/e_os2.h> 62#include <openssl/opensslconf.h>
63
63#ifndef OPENSSL_NO_BIO 64#ifndef OPENSSL_NO_BIO
64#include <openssl/bio.h> 65#include <openssl/bio.h>
65#endif 66#endif
diff --git a/src/lib/libssl/src/crypto/pkcs7/pkcs7.h b/src/lib/libssl/src/crypto/pkcs7/pkcs7.h
index 04edb22f75..a1220aba00 100644
--- a/src/lib/libssl/src/crypto/pkcs7/pkcs7.h
+++ b/src/lib/libssl/src/crypto/pkcs7/pkcs7.h
@@ -59,10 +59,10 @@
59#ifndef HEADER_PKCS7_H 59#ifndef HEADER_PKCS7_H
60#define HEADER_PKCS7_H 60#define HEADER_PKCS7_H
61 61
62#include <openssl/opensslconf.h>
63
62#include <openssl/asn1.h> 64#include <openssl/asn1.h>
63#include <openssl/bio.h> 65#include <openssl/bio.h>
64#include <openssl/e_os2.h>
65
66#include <openssl/ossl_typ.h> 66#include <openssl/ossl_typ.h>
67 67
68#ifdef __cplusplus 68#ifdef __cplusplus
diff --git a/src/lib/libssl/src/crypto/ripemd/ripemd.h b/src/lib/libssl/src/crypto/ripemd/ripemd.h
index f32cfae311..4b2132f06d 100644
--- a/src/lib/libssl/src/crypto/ripemd/ripemd.h
+++ b/src/lib/libssl/src/crypto/ripemd/ripemd.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_RIPEMD_H 59#ifndef HEADER_RIPEMD_H
60#define HEADER_RIPEMD_H 60#define HEADER_RIPEMD_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libssl/src/crypto/sha/sha.h b/src/lib/libssl/src/crypto/sha/sha.h
index c0c3c16c08..43c46b5e69 100644
--- a/src/lib/libssl/src/crypto/sha/sha.h
+++ b/src/lib/libssl/src/crypto/sha/sha.h
@@ -59,9 +59,10 @@
59#ifndef HEADER_SHA_H 59#ifndef HEADER_SHA_H
60#define HEADER_SHA_H 60#define HEADER_SHA_H
61 61
62#include <openssl/e_os2.h>
63#include <stddef.h> 62#include <stddef.h>
64 63
64#include <openssl/opensslconf.h>
65
65#ifdef __cplusplus 66#ifdef __cplusplus
66extern "C" { 67extern "C" {
67#endif 68#endif
diff --git a/src/lib/libssl/src/crypto/ui/ui_lib.c b/src/lib/libssl/src/crypto/ui/ui_lib.c
index 0d3a960052..db0ef98b72 100644
--- a/src/lib/libssl/src/crypto/ui/ui_lib.c
+++ b/src/lib/libssl/src/crypto/ui/ui_lib.c
@@ -57,8 +57,11 @@
57 */ 57 */
58 58
59#include <string.h> 59#include <string.h>
60
61#include <openssl/opensslconf.h>
62
60#include "cryptlib.h" 63#include "cryptlib.h"
61#include <openssl/e_os2.h> 64
62#include <openssl/buffer.h> 65#include <openssl/buffer.h>
63#include <openssl/ui.h> 66#include <openssl/ui.h>
64#include <openssl/err.h> 67#include <openssl/err.h>
diff --git a/src/lib/libssl/src/crypto/ui/ui_openssl.c b/src/lib/libssl/src/crypto/ui/ui_openssl.c
index 3b79ecaf02..4ad98e4d2e 100644
--- a/src/lib/libssl/src/crypto/ui/ui_openssl.c
+++ b/src/lib/libssl/src/crypto/ui/ui_openssl.c
@@ -114,7 +114,7 @@
114 * [including the GNU Public Licence.] 114 * [including the GNU Public Licence.]
115 */ 115 */
116 116
117#include <openssl/e_os2.h> 117#include <openssl/opensslconf.h>
118 118
119#include <signal.h> 119#include <signal.h>
120#include <stdio.h> 120#include <stdio.h>
diff --git a/src/lib/libssl/src/crypto/whrlpool/whrlpool.h b/src/lib/libssl/src/crypto/whrlpool/whrlpool.h
index 03c91da115..e417bfc19e 100644
--- a/src/lib/libssl/src/crypto/whrlpool/whrlpool.h
+++ b/src/lib/libssl/src/crypto/whrlpool/whrlpool.h
@@ -1,9 +1,10 @@
1#ifndef HEADER_WHRLPOOL_H 1#ifndef HEADER_WHRLPOOL_H
2#define HEADER_WHRLPOOL_H 2#define HEADER_WHRLPOOL_H
3 3
4#include <openssl/e_os2.h>
5#include <stddef.h> 4#include <stddef.h>
6 5
6#include <openssl/opensslconf.h>
7
7#ifdef __cplusplus 8#ifdef __cplusplus
8extern "C" { 9extern "C" {
9#endif 10#endif
diff --git a/src/lib/libssl/src/crypto/x509/x509.h b/src/lib/libssl/src/crypto/x509/x509.h
index 2b0435686a..6a29e4bd71 100644
--- a/src/lib/libssl/src/crypto/x509/x509.h
+++ b/src/lib/libssl/src/crypto/x509/x509.h
@@ -64,7 +64,8 @@
64#ifndef HEADER_X509_H 64#ifndef HEADER_X509_H
65#define HEADER_X509_H 65#define HEADER_X509_H
66 66
67#include <openssl/e_os2.h> 67#include <openssl/opensslconf.h>
68
68#ifndef OPENSSL_NO_BUFFER 69#ifndef OPENSSL_NO_BUFFER
69#include <openssl/buffer.h> 70#include <openssl/buffer.h>
70#endif 71#endif