diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h index ffba7bf2e7..9b8a5fa780 100644 --- a/include/polarssl/aes.h +++ b/include/polarssl/aes.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_AES_H #define POLARSSL_AES_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/arc4.h b/include/polarssl/arc4.h index 9333265d38..baa4f6c4fc 100644 --- a/include/polarssl/arc4.h +++ b/include/polarssl/arc4.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_ARC4_H #define POLARSSL_ARC4_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/asn1.h b/include/polarssl/asn1.h index 45fd6cd877..517cd5b114 100644 --- a/include/polarssl/asn1.h +++ b/include/polarssl/asn1.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_ASN1_H #define POLARSSL_ASN1_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_BIGNUM_C) #include "bignum.h" diff --git a/include/polarssl/bignum.h b/include/polarssl/bignum.h index 681a1de8bb..bfd4ce0673 100644 --- a/include/polarssl/bignum.h +++ b/include/polarssl/bignum.h @@ -30,7 +30,11 @@ #include #include +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32) #include diff --git a/include/polarssl/blowfish.h b/include/polarssl/blowfish.h index 45b138764a..8c470ed311 100644 --- a/include/polarssl/blowfish.h +++ b/include/polarssl/blowfish.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_BLOWFISH_H #define POLARSSL_BLOWFISH_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/camellia.h b/include/polarssl/camellia.h index c98512f3d1..a768c61b11 100644 --- a/include/polarssl/camellia.h +++ b/include/polarssl/camellia.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_CAMELLIA_H #define POLARSSL_CAMELLIA_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/cipher.h b/include/polarssl/cipher.h index c7ad5b7808..c8b8490dfd 100644 --- a/include/polarssl/cipher.h +++ b/include/polarssl/cipher.h @@ -30,7 +30,11 @@ #ifndef POLARSSL_CIPHER_H #define POLARSSL_CIPHER_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_GCM_C) #define POLARSSL_CIPHER_MODE_AEAD diff --git a/include/polarssl/cipher_wrap.h b/include/polarssl/cipher_wrap.h index 63bd093fcb..49d2661d1f 100644 --- a/include/polarssl/cipher_wrap.h +++ b/include/polarssl/cipher_wrap.h @@ -29,7 +29,11 @@ #ifndef POLARSSL_CIPHER_WRAP_H #define POLARSSL_CIPHER_WRAP_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "cipher.h" #ifdef __cplusplus diff --git a/include/polarssl/compat-1.2.h b/include/polarssl/compat-1.2.h index 0cc63cac4b..7ebc9c1590 100644 --- a/include/polarssl/compat-1.2.h +++ b/include/polarssl/compat-1.2.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_COMPAT_1_2_H #define POLARSSL_COMPAT_1_2_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif // Comment out to disable prototype change warnings #define SHOW_PROTOTYPE_CHANGE_WARNINGS diff --git a/include/polarssl/debug.h b/include/polarssl/debug.h index 599ce43f70..7b51cbbf63 100644 --- a/include/polarssl/debug.h +++ b/include/polarssl/debug.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_DEBUG_H #define POLARSSL_DEBUG_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "ssl.h" #if defined(POLARSSL_ECP_C) #include "ecp.h" diff --git a/include/polarssl/des.h b/include/polarssl/des.h index d29bd1dee0..7499b5328d 100644 --- a/include/polarssl/des.h +++ b/include/polarssl/des.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_DES_H #define POLARSSL_DES_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/entropy.h b/include/polarssl/entropy.h index 4485d3e633..4f4f8f71fa 100644 --- a/include/polarssl/entropy.h +++ b/include/polarssl/entropy.h @@ -29,7 +29,11 @@ #include +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SHA512_C) && !defined(POLARSSL_ENTROPY_FORCE_SHA256) #include "sha512.h" diff --git a/include/polarssl/entropy_poll.h b/include/polarssl/entropy_poll.h index 0116598290..92efa0045b 100644 --- a/include/polarssl/entropy_poll.h +++ b/include/polarssl/entropy_poll.h @@ -29,7 +29,11 @@ #include +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #ifdef __cplusplus extern "C" { diff --git a/include/polarssl/md2.h b/include/polarssl/md2.h index a8e23d0dae..3792a4dc34 100644 --- a/include/polarssl/md2.h +++ b/include/polarssl/md2.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_MD2_H #define POLARSSL_MD2_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/md4.h b/include/polarssl/md4.h index a1b5d459e4..b0434dd5c1 100644 --- a/include/polarssl/md4.h +++ b/include/polarssl/md4.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_MD4_H #define POLARSSL_MD4_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/md5.h b/include/polarssl/md5.h index df2a61b8ac..bb0ebf37db 100644 --- a/include/polarssl/md5.h +++ b/include/polarssl/md5.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_MD5_H #define POLARSSL_MD5_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/md_wrap.h b/include/polarssl/md_wrap.h index d681a0ca20..634bb7d5d4 100644 --- a/include/polarssl/md_wrap.h +++ b/include/polarssl/md_wrap.h @@ -29,7 +29,11 @@ #ifndef POLARSSL_MD_WRAP_H #define POLARSSL_MD_WRAP_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "md.h" #ifdef __cplusplus diff --git a/include/polarssl/memory.h b/include/polarssl/memory.h index 64690bed9d..3af39511b4 100644 --- a/include/polarssl/memory.h +++ b/include/polarssl/memory.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_MEMORY_H #define POLARSSL_MEMORY_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/memory_buffer_alloc.h b/include/polarssl/memory_buffer_alloc.h index 68477a477d..c449752587 100644 --- a/include/polarssl/memory_buffer_alloc.h +++ b/include/polarssl/memory_buffer_alloc.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_MEMORY_BUFFER_ALLOC_H #define POLARSSL_MEMORY_BUFFER_ALLOC_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/oid.h b/include/polarssl/oid.h index d825f4c945..b1d33b66bc 100644 --- a/include/polarssl/oid.h +++ b/include/polarssl/oid.h @@ -28,7 +28,11 @@ #define POLARSSL_OID_H #include +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "asn1.h" #include "pk.h" #if defined(POLARSSL_CIPHER_C) diff --git a/include/polarssl/pk.h b/include/polarssl/pk.h index cebe0574de..7014e420eb 100644 --- a/include/polarssl/pk.h +++ b/include/polarssl/pk.h @@ -28,7 +28,11 @@ #ifndef POLARSSL_PK_H #define POLARSSL_PK_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "md.h" diff --git a/include/polarssl/pk_wrap.h b/include/polarssl/pk_wrap.h index 91a671e029..7baafb95da 100644 --- a/include/polarssl/pk_wrap.h +++ b/include/polarssl/pk_wrap.h @@ -28,7 +28,11 @@ #ifndef POLARSSL_PK_WRAP_H #define POLARSSL_PK_WRAP_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "pk.h" diff --git a/include/polarssl/pkcs11.h b/include/polarssl/pkcs11.h index 707d00a817..1e4ed383ca 100644 --- a/include/polarssl/pkcs11.h +++ b/include/polarssl/pkcs11.h @@ -29,7 +29,11 @@ #ifndef POLARSSL_PKCS11_H #define POLARSSL_PKCS11_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PKCS11_C) diff --git a/include/polarssl/platform.h b/include/polarssl/platform.h index b61aad021b..fd9b80a12a 100644 --- a/include/polarssl/platform.h +++ b/include/polarssl/platform.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_PLATFORM_H #define POLARSSL_PLATFORM_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/ripemd160.h b/include/polarssl/ripemd160.h index 2d760c3dfd..754322d6ef 100644 --- a/include/polarssl/ripemd160.h +++ b/include/polarssl/ripemd160.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_RIPEMD160_H #define POLARSSL_RIPEMD160_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/rsa.h b/include/polarssl/rsa.h index d8c8341c9a..ce84c1c27f 100644 --- a/include/polarssl/rsa.h +++ b/include/polarssl/rsa.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_RSA_H #define POLARSSL_RSA_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "bignum.h" #include "md.h" diff --git a/include/polarssl/sha1.h b/include/polarssl/sha1.h index e1d8e27ca1..f5e91a4647 100644 --- a/include/polarssl/sha1.h +++ b/include/polarssl/sha1.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_SHA1_H #define POLARSSL_SHA1_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/sha256.h b/include/polarssl/sha256.h index 89df578e91..f3c00fa20d 100644 --- a/include/polarssl/sha256.h +++ b/include/polarssl/sha256.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_SHA256_H #define POLARSSL_SHA256_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/sha512.h b/include/polarssl/sha512.h index 2c61637ee7..b8908af226 100644 --- a/include/polarssl/sha512.h +++ b/include/polarssl/sha512.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_SHA512_H #define POLARSSL_SHA512_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index eb7ac511e7..401908a396 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_SSL_H #define POLARSSL_SSL_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "net.h" #include "bignum.h" diff --git a/include/polarssl/threading.h b/include/polarssl/threading.h index 87071523da..1fc9f9826d 100644 --- a/include/polarssl/threading.h +++ b/include/polarssl/threading.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_THREADING_H #define POLARSSL_THREADING_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/include/polarssl/timing.h b/include/polarssl/timing.h index 09624fcf1e..383120efea 100644 --- a/include/polarssl/timing.h +++ b/include/polarssl/timing.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_TIMING_H #define POLARSSL_TIMING_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if !defined(POLARSSL_TIMING_ALT) // Regular implementation diff --git a/include/polarssl/version.h b/include/polarssl/version.h index bae12443f2..1c504fafb5 100644 --- a/include/polarssl/version.h +++ b/include/polarssl/version.h @@ -31,7 +31,11 @@ #ifndef POLARSSL_VERSION_H #define POLARSSL_VERSION_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif /** * The version number x.y.z is split into three parts. diff --git a/include/polarssl/x509.h b/include/polarssl/x509.h index f2b8a0c0b6..e13f38f784 100644 --- a/include/polarssl/x509.h +++ b/include/polarssl/x509.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_X509_H #define POLARSSL_X509_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "asn1.h" #include "pk.h" diff --git a/include/polarssl/x509_crl.h b/include/polarssl/x509_crl.h index 0c79916aff..0fee59b83f 100644 --- a/include/polarssl/x509_crl.h +++ b/include/polarssl/x509_crl.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_X509_CRL_H #define POLARSSL_X509_CRL_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "x509.h" diff --git a/include/polarssl/x509_crt.h b/include/polarssl/x509_crt.h index 8e63381979..0081d36c43 100644 --- a/include/polarssl/x509_crt.h +++ b/include/polarssl/x509_crt.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_X509_CRT_H #define POLARSSL_X509_CRT_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "x509.h" diff --git a/include/polarssl/x509_csr.h b/include/polarssl/x509_csr.h index 7e38300874..b660587601 100644 --- a/include/polarssl/x509_csr.h +++ b/include/polarssl/x509_csr.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_X509_CSR_H #define POLARSSL_X509_CSR_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "x509.h" diff --git a/include/polarssl/xtea.h b/include/polarssl/xtea.h index 95854d1220..07118d977f 100644 --- a/include/polarssl/xtea.h +++ b/include/polarssl/xtea.h @@ -27,7 +27,11 @@ #ifndef POLARSSL_XTEA_H #define POLARSSL_XTEA_H +#if !defined(POLARSSL_CONFIG_FILE) #include "config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/library/aes.c b/library/aes.c index fb211fe3c2..f0a25bc52c 100644 --- a/library/aes.c +++ b/library/aes.c @@ -29,7 +29,11 @@ * http://csrc.nist.gov/publications/fips/fips197/fips-197.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_AES_C) diff --git a/library/aesni.c b/library/aesni.c index e396d43958..9d21c85d45 100644 --- a/library/aesni.c +++ b/library/aesni.c @@ -28,7 +28,11 @@ * [CLMUL-WP] http://software.intel.com/en-us/articles/intel-carry-less-multiplication-instruction-and-its-usage-for-computing-the-gcm-mode/ */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_AESNI_C) diff --git a/library/arc4.c b/library/arc4.c index 536ea8ccc2..dbf0c7ed48 100644 --- a/library/arc4.c +++ b/library/arc4.c @@ -28,7 +28,11 @@ * http://groups.google.com/group/sci.crypt/msg/10a300c9d21afca0 */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ARC4_C) diff --git a/library/asn1parse.c b/library/asn1parse.c index c9ce75acca..8b8e2df2c5 100644 --- a/library/asn1parse.c +++ b/library/asn1parse.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ASN1_PARSE_C) diff --git a/library/asn1write.c b/library/asn1write.c index 626e0ff682..314c9f93b8 100644 --- a/library/asn1write.c +++ b/library/asn1write.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ASN1_WRITE_C) diff --git a/library/base64.c b/library/base64.c index ee9c05c5d9..103d814752 100644 --- a/library/base64.c +++ b/library/base64.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_BASE64_C) diff --git a/library/bignum.c b/library/bignum.c index 5fbb7d3542..ac7f25c01e 100644 --- a/library/bignum.c +++ b/library/bignum.c @@ -30,7 +30,11 @@ * http://math.libtomcrypt.com/files/tommath.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_BIGNUM_C) diff --git a/library/blowfish.c b/library/blowfish.c index 910d610d14..733c9fac39 100644 --- a/library/blowfish.c +++ b/library/blowfish.c @@ -29,7 +29,11 @@ * */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_BLOWFISH_C) diff --git a/library/camellia.c b/library/camellia.c index f007a46a3d..4bf0b2939e 100644 --- a/library/camellia.c +++ b/library/camellia.c @@ -29,7 +29,11 @@ * http://info.isl.ntt.co.jp/crypt/eng/camellia/dl/01espec.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_CAMELLIA_C) diff --git a/library/certs.c b/library/certs.c index 7409efad1f..982226d41e 100644 --- a/library/certs.c +++ b/library/certs.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_CERTS_C) diff --git a/library/cipher.c b/library/cipher.c index a103c263fc..7534b2f784 100644 --- a/library/cipher.c +++ b/library/cipher.c @@ -27,7 +27,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_CIPHER_C) diff --git a/library/cipher_wrap.c b/library/cipher_wrap.c index 23065c4ba9..2a79eeff54 100644 --- a/library/cipher_wrap.c +++ b/library/cipher_wrap.c @@ -27,7 +27,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_CIPHER_C) diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 4027809093..89b4c4c650 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -28,7 +28,11 @@ * http://csrc.nist.gov/publications/nistpubs/800-90/SP800-90revised_March2007.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_CTR_DRBG_C) diff --git a/library/debug.c b/library/debug.c index 60e39ed37a..b768e64949 100644 --- a/library/debug.c +++ b/library/debug.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_DEBUG_C) diff --git a/library/des.c b/library/des.c index 7da3269d2b..b8bb271dc6 100644 --- a/library/des.c +++ b/library/des.c @@ -29,7 +29,11 @@ * http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_DES_C) diff --git a/library/dhm.c b/library/dhm.c index 635e63e2ab..5a38c148de 100644 --- a/library/dhm.c +++ b/library/dhm.c @@ -28,7 +28,11 @@ * http://www.cacr.math.uwaterloo.ca/hac/ (chapter 12) */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_DHM_C) diff --git a/library/ecdh.c b/library/ecdh.c index e35602db87..fa32593752 100644 --- a/library/ecdh.c +++ b/library/ecdh.c @@ -30,7 +30,11 @@ * RFC 4492 */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ECDH_C) diff --git a/library/ecdsa.c b/library/ecdsa.c index 6e45f2f1da..e467e37b3b 100644 --- a/library/ecdsa.c +++ b/library/ecdsa.c @@ -29,7 +29,11 @@ * SEC1 http://www.secg.org/index.php?action=secg,docs_secg */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ECDSA_C) diff --git a/library/ecp.c b/library/ecp.c index 4823804faa..7e965d3c13 100644 --- a/library/ecp.c +++ b/library/ecp.c @@ -44,7 +44,11 @@ * */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ECP_C) diff --git a/library/ecp_curves.c b/library/ecp_curves.c index afb1dd74f0..7fc07a09e9 100644 --- a/library/ecp_curves.c +++ b/library/ecp_curves.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ECP_C) diff --git a/library/entropy.c b/library/entropy.c index d62fecf5e2..238719bd83 100644 --- a/library/entropy.c +++ b/library/entropy.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ENTROPY_C) diff --git a/library/entropy_poll.c b/library/entropy_poll.c index badcfac5cc..5c1dcc7737 100644 --- a/library/entropy_poll.c +++ b/library/entropy_poll.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ENTROPY_C) diff --git a/library/error.c b/library/error.c index b2e834601c..ed0f39eff2 100644 --- a/library/error.c +++ b/library/error.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ERROR_C) diff --git a/library/gcm.c b/library/gcm.c index 1c6cf9f93b..d5918a5dcc 100644 --- a/library/gcm.c +++ b/library/gcm.c @@ -33,7 +33,11 @@ * [MGV] 4.1, pp. 12-13, to enhance speed without using too much memory. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_GCM_C) diff --git a/library/havege.c b/library/havege.c index 4d6f418ec9..42aceda372 100644 --- a/library/havege.c +++ b/library/havege.c @@ -30,7 +30,11 @@ * Contact: seznec(at)irisa_dot_fr - orocheco(at)irisa_dot_fr */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_HAVEGE_C) diff --git a/library/hmac_drbg.c b/library/hmac_drbg.c index baef526b11..619b4464ed 100644 --- a/library/hmac_drbg.c +++ b/library/hmac_drbg.c @@ -29,7 +29,11 @@ * References below are based on rev. 1 (January 2012). */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_HMAC_DRBG_C) diff --git a/library/md.c b/library/md.c index 5ab0fadd3a..a05bf34b05 100644 --- a/library/md.c +++ b/library/md.c @@ -27,7 +27,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MD_C) diff --git a/library/md2.c b/library/md2.c index f29877f902..1e1691d641 100644 --- a/library/md2.c +++ b/library/md2.c @@ -29,7 +29,11 @@ * http://www.ietf.org/rfc/rfc1319.txt */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MD2_C) diff --git a/library/md4.c b/library/md4.c index 8ac6c0181c..aa5f5391ad 100644 --- a/library/md4.c +++ b/library/md4.c @@ -29,7 +29,11 @@ * http://www.ietf.org/rfc/rfc1320.txt */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MD4_C) diff --git a/library/md5.c b/library/md5.c index c596e43b2f..6ceab8a288 100644 --- a/library/md5.c +++ b/library/md5.c @@ -28,7 +28,11 @@ * http://www.ietf.org/rfc/rfc1321.txt */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MD5_C) diff --git a/library/md_wrap.c b/library/md_wrap.c index a6c1bacbb6..0b091e3c51 100644 --- a/library/md_wrap.c +++ b/library/md_wrap.c @@ -27,7 +27,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MD_C) diff --git a/library/memory_buffer_alloc.c b/library/memory_buffer_alloc.c index 33ab5ac519..5176176ddd 100644 --- a/library/memory_buffer_alloc.c +++ b/library/memory_buffer_alloc.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_MEMORY_BUFFER_ALLOC_C) diff --git a/library/net.c b/library/net.c index ff489864e4..0bc2f68aee 100644 --- a/library/net.c +++ b/library/net.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_NET_C) diff --git a/library/oid.c b/library/oid.c index 2a61193c44..2b5293596d 100644 --- a/library/oid.c +++ b/library/oid.c @@ -25,7 +25,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_OID_C) diff --git a/library/padlock.c b/library/padlock.c index 6e94532df7..52b04f0f3f 100644 --- a/library/padlock.c +++ b/library/padlock.c @@ -29,7 +29,11 @@ * programming_guide.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PADLOCK_C) diff --git a/library/pbkdf2.c b/library/pbkdf2.c index 09e56dfa3c..65722742c7 100644 --- a/library/pbkdf2.c +++ b/library/pbkdf2.c @@ -34,7 +34,11 @@ * http://tools.ietf.org/html/rfc6070 (Test vectors) */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PBKDF2_C) diff --git a/library/pem.c b/library/pem.c index 1cc23ba8db..2f639d04f0 100644 --- a/library/pem.c +++ b/library/pem.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PEM_PARSE_C) || defined(POLARSSL_PEM_WRITE_C) #include "polarssl/pem.h" diff --git a/library/pk.c b/library/pk.c index 25c9d85e6b..ce171073c6 100644 --- a/library/pk.c +++ b/library/pk.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PK_C) diff --git a/library/pk_wrap.c b/library/pk_wrap.c index 2a4da03d87..513d96d7c0 100644 --- a/library/pk_wrap.c +++ b/library/pk_wrap.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PK_C) diff --git a/library/pkcs12.c b/library/pkcs12.c index 16821b03be..637c0578e8 100644 --- a/library/pkcs12.c +++ b/library/pkcs12.c @@ -29,7 +29,11 @@ * ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12v1-1.asn */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PKCS12_C) diff --git a/library/pkcs5.c b/library/pkcs5.c index 2845f6812a..db4e8cc5fb 100644 --- a/library/pkcs5.c +++ b/library/pkcs5.c @@ -33,7 +33,11 @@ * http://tools.ietf.org/html/rfc6070 (Test vectors) */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PKCS5_C) diff --git a/library/pkparse.c b/library/pkparse.c index d0ae5d53bc..ae8bddf032 100644 --- a/library/pkparse.c +++ b/library/pkparse.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PK_PARSE_C) diff --git a/library/pkwrite.c b/library/pkwrite.c index 4cbba10b7a..aa04a5af00 100644 --- a/library/pkwrite.c +++ b/library/pkwrite.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PK_WRITE_C) diff --git a/library/platform.c b/library/platform.c index 8ea485d17f..d57cbc8286 100644 --- a/library/platform.c +++ b/library/platform.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_PLATFORM_C) diff --git a/library/ripemd160.c b/library/ripemd160.c index 10e60df84b..f0e04a8076 100644 --- a/library/ripemd160.c +++ b/library/ripemd160.c @@ -29,7 +29,11 @@ * http://ehash.iaik.tugraz.at/wiki/RIPEMD-160 */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_RIPEMD160_C) diff --git a/library/rsa.c b/library/rsa.c index 17861496d8..9cfbe2abe7 100644 --- a/library/rsa.c +++ b/library/rsa.c @@ -29,7 +29,11 @@ * http://www.cacr.math.uwaterloo.ca/hac/about/chap8.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_RSA_C) diff --git a/library/sha1.c b/library/sha1.c index f02d6e6efb..b89db3272f 100644 --- a/library/sha1.c +++ b/library/sha1.c @@ -28,7 +28,11 @@ * http://www.itl.nist.gov/fipspubs/fip180-1.htm */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SHA1_C) diff --git a/library/sha256.c b/library/sha256.c index 638188f534..e3d3ea826a 100644 --- a/library/sha256.c +++ b/library/sha256.c @@ -28,7 +28,11 @@ * http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SHA256_C) diff --git a/library/sha512.c b/library/sha512.c index 1bef2e90cd..1d4b977060 100644 --- a/library/sha512.c +++ b/library/sha512.c @@ -28,7 +28,11 @@ * http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SHA512_C) diff --git a/library/ssl_cache.c b/library/ssl_cache.c index 4c7d3dbb08..69f7114def 100644 --- a/library/ssl_cache.c +++ b/library/ssl_cache.c @@ -27,7 +27,11 @@ * to store and retrieve the session information. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_CACHE_C) diff --git a/library/ssl_ciphersuites.c b/library/ssl_ciphersuites.c index 25d192b7a6..8018fe7864 100644 --- a/library/ssl_ciphersuites.c +++ b/library/ssl_ciphersuites.c @@ -25,7 +25,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_TLS_C) diff --git a/library/ssl_cli.c b/library/ssl_cli.c index cd0d8c2a7f..72299ee6f9 100644 --- a/library/ssl_cli.c +++ b/library/ssl_cli.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_CLI_C) diff --git a/library/ssl_srv.c b/library/ssl_srv.c index acf2ef24cd..21c4e2b05f 100644 --- a/library/ssl_srv.c +++ b/library/ssl_srv.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_SRV_C) diff --git a/library/ssl_tls.c b/library/ssl_tls.c index e9b102467f..15245e4224 100644 --- a/library/ssl_tls.c +++ b/library/ssl_tls.c @@ -31,7 +31,11 @@ * http://www.ietf.org/rfc/rfc4346.txt */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_TLS_C) diff --git a/library/threading.c b/library/threading.c index 744fe27fa9..5b25e015c7 100644 --- a/library/threading.c +++ b/library/threading.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_THREADING_C) diff --git a/library/timing.c b/library/timing.c index d8b5b46287..f22591d477 100644 --- a/library/timing.c +++ b/library/timing.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SELF_TEST) && defined(POLARSSL_PLATFORM_C) #include "polarssl/platform.h" diff --git a/library/version.c b/library/version.c index c1080b7816..120d62de49 100644 --- a/library/version.c +++ b/library/version.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_VERSION_C) diff --git a/library/version_features.c b/library/version_features.c index 2382798603..d7d2d8feda 100644 --- a/library/version_features.c +++ b/library/version_features.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_VERSION_C) diff --git a/library/x509.c b/library/x509.c index 60e1cac81c..1b06e21c66 100644 --- a/library/x509.c +++ b/library/x509.c @@ -34,7 +34,11 @@ * http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_USE_C) diff --git a/library/x509_create.c b/library/x509_create.c index 8e12c14cd4..8f7a789ff9 100644 --- a/library/x509_create.c +++ b/library/x509_create.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CREATE_C) diff --git a/library/x509_crl.c b/library/x509_crl.c index e3ebbff1ac..6e46e1f535 100644 --- a/library/x509_crl.c +++ b/library/x509_crl.c @@ -34,7 +34,11 @@ * http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CRL_PARSE_C) diff --git a/library/x509_crt.c b/library/x509_crt.c index 2c32122d3c..d07236660a 100644 --- a/library/x509_crt.c +++ b/library/x509_crt.c @@ -34,7 +34,11 @@ * http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CRT_PARSE_C) diff --git a/library/x509_csr.c b/library/x509_csr.c index 4fb9ac2285..7213fd23f6 100644 --- a/library/x509_csr.c +++ b/library/x509_csr.c @@ -34,7 +34,11 @@ * http://www.itu.int/ITU-T/studygroups/com17/languages/X.690-0207.pdf */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CSR_PARSE_C) diff --git a/library/x509write_crt.c b/library/x509write_crt.c index 15a1194ed7..302b8771ed 100644 --- a/library/x509write_crt.c +++ b/library/x509write_crt.c @@ -29,7 +29,11 @@ * - attributes: PKCS#9 v2.0 aka RFC 2985 */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CRT_WRITE_C) diff --git a/library/x509write_csr.c b/library/x509write_csr.c index 3a49aee94e..6e7bed4a15 100644 --- a/library/x509write_csr.c +++ b/library/x509write_csr.c @@ -28,7 +28,11 @@ * - attributes: PKCS#9 v2.0 aka RFC 2985 */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_X509_CSR_WRITE_C) diff --git a/library/xtea.c b/library/xtea.c index 1bb6f29dd5..58f970c7cd 100644 --- a/library/xtea.c +++ b/library/xtea.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_XTEA_C) diff --git a/programs/aes/aescrypt2.c b/programs/aes/aescrypt2.c index 1239ca202e..28f74d1a41 100644 --- a/programs/aes/aescrypt2.c +++ b/programs/aes/aescrypt2.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_WIN32) #include diff --git a/programs/aes/crypt_and_hash.c b/programs/aes/crypt_and_hash.c index 859dc33823..3e89ba6fc4 100644 --- a/programs/aes/crypt_and_hash.c +++ b/programs/aes/crypt_and_hash.c @@ -24,7 +24,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_WIN32) #include diff --git a/programs/hash/generic_sum.c b/programs/hash/generic_sum.c index 498039b2b4..b5de2a1d69 100644 --- a/programs/hash/generic_sum.c +++ b/programs/hash/generic_sum.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/hash/hello.c b/programs/hash/hello.c index 21c13874ab..5bcfee9cda 100644 --- a/programs/hash/hello.c +++ b/programs/hash/hello.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/programs/hash/md5sum.c b/programs/hash/md5sum.c index 74296500c2..ba7eea411f 100644 --- a/programs/hash/md5sum.c +++ b/programs/hash/md5sum.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/hash/sha1sum.c b/programs/hash/sha1sum.c index bd3fd6e25b..3a87b513b7 100644 --- a/programs/hash/sha1sum.c +++ b/programs/hash/sha1sum.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/hash/sha2sum.c b/programs/hash/sha2sum.c index 2e6884dbf7..3452054bd9 100644 --- a/programs/hash/sha2sum.c +++ b/programs/hash/sha2sum.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/dh_client.c b/programs/pkey/dh_client.c index 66450b6d18..154f5e3f45 100644 --- a/programs/pkey/dh_client.c +++ b/programs/pkey/dh_client.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/dh_genprime.c b/programs/pkey/dh_genprime.c index 6d6e35a72e..e75b338252 100644 --- a/programs/pkey/dh_genprime.c +++ b/programs/pkey/dh_genprime.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/programs/pkey/dh_server.c b/programs/pkey/dh_server.c index eb417daa16..c2fdbbfee6 100644 --- a/programs/pkey/dh_server.c +++ b/programs/pkey/dh_server.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/ecdsa.c b/programs/pkey/ecdsa.c index 3dccfeb1d8..0b4f8c42b8 100644 --- a/programs/pkey/ecdsa.c +++ b/programs/pkey/ecdsa.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "polarssl/entropy.h" #include "polarssl/ctr_drbg.h" diff --git a/programs/pkey/gen_key.c b/programs/pkey/gen_key.c index 43ae6e16d7..7c8efef6d3 100644 --- a/programs/pkey/gen_key.c +++ b/programs/pkey/gen_key.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/key_app.c b/programs/pkey/key_app.c index b355069f78..27199ba905 100644 --- a/programs/pkey/key_app.c +++ b/programs/pkey/key_app.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/key_app_writer.c b/programs/pkey/key_app_writer.c index 269ddbd438..c35736f9c7 100644 --- a/programs/pkey/key_app_writer.c +++ b/programs/pkey/key_app_writer.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/mpi_demo.c b/programs/pkey/mpi_demo.c index cc57f5fb1d..2e9bf934c4 100644 --- a/programs/pkey/mpi_demo.c +++ b/programs/pkey/mpi_demo.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/programs/pkey/pk_decrypt.c b/programs/pkey/pk_decrypt.c index bf3455dfc3..8088c8f1c1 100644 --- a/programs/pkey/pk_decrypt.c +++ b/programs/pkey/pk_decrypt.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/pk_encrypt.c b/programs/pkey/pk_encrypt.c index 149e7ddfe0..ad005736cc 100644 --- a/programs/pkey/pk_encrypt.c +++ b/programs/pkey/pk_encrypt.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/pk_sign.c b/programs/pkey/pk_sign.c index 4adb753710..2c355d9390 100644 --- a/programs/pkey/pk_sign.c +++ b/programs/pkey/pk_sign.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/pk_verify.c b/programs/pkey/pk_verify.c index f2664a677f..e970520949 100644 --- a/programs/pkey/pk_verify.c +++ b/programs/pkey/pk_verify.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_decrypt.c b/programs/pkey/rsa_decrypt.c index 02d30c8ed1..c77d210e76 100644 --- a/programs/pkey/rsa_decrypt.c +++ b/programs/pkey/rsa_decrypt.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_encrypt.c b/programs/pkey/rsa_encrypt.c index 2ed27e23ea..51a5ddb646 100644 --- a/programs/pkey/rsa_encrypt.c +++ b/programs/pkey/rsa_encrypt.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_genkey.c b/programs/pkey/rsa_genkey.c index 7711776ef2..861e2c73ff 100644 --- a/programs/pkey/rsa_genkey.c +++ b/programs/pkey/rsa_genkey.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include diff --git a/programs/pkey/rsa_sign.c b/programs/pkey/rsa_sign.c index ad907ddd35..0689557781 100644 --- a/programs/pkey/rsa_sign.c +++ b/programs/pkey/rsa_sign.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_sign_pss.c b/programs/pkey/rsa_sign_pss.c index de33a6ea5c..890a0b6996 100644 --- a/programs/pkey/rsa_sign_pss.c +++ b/programs/pkey/rsa_sign_pss.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_verify.c b/programs/pkey/rsa_verify.c index cc3506d713..9c7c5ee7ef 100644 --- a/programs/pkey/rsa_verify.c +++ b/programs/pkey/rsa_verify.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/pkey/rsa_verify_pss.c b/programs/pkey/rsa_verify_pss.c index 0969a5a221..84945c32a7 100644 --- a/programs/pkey/rsa_verify_pss.c +++ b/programs/pkey/rsa_verify_pss.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/random/gen_entropy.c b/programs/random/gen_entropy.c index e0cbe528a4..67679c85a8 100644 --- a/programs/random/gen_entropy.c +++ b/programs/random/gen_entropy.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "polarssl/entropy.h" diff --git a/programs/random/gen_random_ctr_drbg.c b/programs/random/gen_random_ctr_drbg.c index 32b8521d30..ddd7737c1d 100644 --- a/programs/random/gen_random_ctr_drbg.c +++ b/programs/random/gen_random_ctr_drbg.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "polarssl/entropy.h" #include "polarssl/ctr_drbg.h" diff --git a/programs/random/gen_random_havege.c b/programs/random/gen_random_havege.c index 9d3b560583..fd394117b9 100644 --- a/programs/random/gen_random_havege.c +++ b/programs/random/gen_random_havege.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include "polarssl/havege.h" diff --git a/programs/ssl/ssl_client1.c b/programs/ssl/ssl_client1.c index a61ae64d9b..e5a68e290f 100644 --- a/programs/ssl/ssl_client1.c +++ b/programs/ssl/ssl_client1.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/ssl/ssl_client2.c b/programs/ssl/ssl_client2.c index 012403a401..62d29ad22a 100644 --- a/programs/ssl/ssl_client2.c +++ b/programs/ssl/ssl_client2.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/ssl/ssl_fork_server.c b/programs/ssl/ssl_fork_server.c index 9279194163..554be1f9f8 100644 --- a/programs/ssl/ssl_fork_server.c +++ b/programs/ssl/ssl_fork_server.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_WIN32) #include diff --git a/programs/ssl/ssl_mail_client.c b/programs/ssl/ssl_mail_client.c index 64006ec62e..455cca9b4a 100644 --- a/programs/ssl/ssl_mail_client.c +++ b/programs/ssl/ssl_mail_client.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/ssl/ssl_pthread_server.c b/programs/ssl/ssl_pthread_server.c index efb360c21a..254505efab 100644 --- a/programs/ssl/ssl_pthread_server.c +++ b/programs/ssl/ssl_pthread_server.c @@ -24,7 +24,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_WIN32) #include diff --git a/programs/ssl/ssl_server.c b/programs/ssl/ssl_server.c index 5b86f9ba17..fcc518c7c2 100644 --- a/programs/ssl/ssl_server.c +++ b/programs/ssl/ssl_server.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(_WIN32) #include diff --git a/programs/ssl/ssl_server2.c b/programs/ssl/ssl_server2.c index 44f04a41da..48d5d30de5 100644 --- a/programs/ssl/ssl_server2.c +++ b/programs/ssl/ssl_server2.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_SSL_SERVER_NAME_INDICATION) && defined(POLARSSL_FS_IO) #define POLARSSL_SNI diff --git a/programs/test/benchmark.c b/programs/test/benchmark.c index 2f359ad340..7077518b11 100644 --- a/programs/test/benchmark.c +++ b/programs/test/benchmark.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/test/o_p_test.c b/programs/test/o_p_test.c index 3a6c693bb0..14789401ff 100644 --- a/programs/test/o_p_test.c +++ b/programs/test/o_p_test.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/test/selftest.c b/programs/test/selftest.c index ba6e1d5c4d..a2e7f7539b 100644 --- a/programs/test/selftest.c +++ b/programs/test/selftest.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/test/ssl_cert_test.c b/programs/test/ssl_cert_test.c index 57f5f844fd..2553dba012 100644 --- a/programs/test/ssl_cert_test.c +++ b/programs/test/ssl_cert_test.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/test/ssl_test.c b/programs/test/ssl_test.c index 79bab943c0..069dc8a0d2 100644 --- a/programs/test/ssl_test.c +++ b/programs/test/ssl_test.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/util/pem2der.c b/programs/util/pem2der.c index a755694e69..5386fdb9cf 100644 --- a/programs/util/pem2der.c +++ b/programs/util/pem2der.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/util/strerror.c b/programs/util/strerror.c index 91f5c9e678..b56eaaef6e 100644 --- a/programs/util/strerror.c +++ b/programs/util/strerror.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/x509/cert_app.c b/programs/x509/cert_app.c index c43e662af3..72618e666d 100644 --- a/programs/x509/cert_app.c +++ b/programs/x509/cert_app.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/x509/cert_req.c b/programs/x509/cert_req.c index f56cae8e7f..6a0467ae22 100644 --- a/programs/x509/cert_req.c +++ b/programs/x509/cert_req.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/x509/cert_write.c b/programs/x509/cert_write.c index 31b52054fc..e50a99dfe2 100644 --- a/programs/x509/cert_write.c +++ b/programs/x509/cert_write.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/x509/crl_app.c b/programs/x509/crl_app.c index 0e4cd8801f..b1f0a02a33 100644 --- a/programs/x509/crl_app.c +++ b/programs/x509/crl_app.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/programs/x509/req_app.c b/programs/x509/req_app.c index 1f9d62841f..91bb2dc264 100644 --- a/programs/x509/req_app.c +++ b/programs/x509/req_app.c @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #include #include diff --git a/scripts/data_files/error.fmt b/scripts/data_files/error.fmt index 969cd95a01..30ee257a5d 100644 --- a/scripts/data_files/error.fmt +++ b/scripts/data_files/error.fmt @@ -1,7 +1,7 @@ /* * Error message information * - * Copyright (C) 2006-2012, Brainspark B.V. + * Copyright (C) 2006-2014, Brainspark B.V. * * This file is part of PolarSSL (http://www.polarssl.org) * Lead Maintainer: Paul Bakker @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_ERROR_C) diff --git a/scripts/data_files/version_features.fmt b/scripts/data_files/version_features.fmt index 099e82ad2d..c6a424f5d1 100644 --- a/scripts/data_files/version_features.fmt +++ b/scripts/data_files/version_features.fmt @@ -23,7 +23,11 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ +#if !defined(POLARSSL_CONFIG_FILE) #include "polarssl/config.h" +#else +#include POLARSSL_CONFIG_FILE +#endif #if defined(POLARSSL_VERSION_C) diff --git a/tests/scripts/generate_code.pl b/tests/scripts/generate_code.pl index 6c2ac6e0fd..6cba14f513 100755 --- a/tests/scripts/generate_code.pl +++ b/tests/scripts/generate_code.pl @@ -59,7 +59,11 @@ $/ = $line_separator; open(TEST_FILE, ">$test_file") or die "Opening destination file '$test_file': $!"; print TEST_FILE << "END"; +#if !defined(POLARSSL_CONFIG_FILE) #include +#else +#include POLARSSL_CONFIG_FILE +#endif $suite_pre_code $suite_header