Adapt sources to configurable config.h name
diff --git a/include/polarssl/aes.h b/include/polarssl/aes.h
index ffba7bf..9b8a5fa 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 <string.h>
diff --git a/include/polarssl/arc4.h b/include/polarssl/arc4.h
index 9333265..baa4f6c 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 <string.h>
diff --git a/include/polarssl/asn1.h b/include/polarssl/asn1.h
index 45fd6cd..517cd5b 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 681a1de..bfd4ce0 100644
--- a/include/polarssl/bignum.h
+++ b/include/polarssl/bignum.h
@@ -30,7 +30,11 @@
#include <stdio.h>
#include <string.h>
+#if !defined(POLARSSL_CONFIG_FILE)
#include "config.h"
+#else
+#include POLARSSL_CONFIG_FILE
+#endif
#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
#include <basetsd.h>
diff --git a/include/polarssl/blowfish.h b/include/polarssl/blowfish.h
index 45b1387..8c470ed 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 <string.h>
diff --git a/include/polarssl/camellia.h b/include/polarssl/camellia.h
index c98512f..a768c61 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 <string.h>
diff --git a/include/polarssl/cipher.h b/include/polarssl/cipher.h
index c7ad5b7..c8b8490 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 63bd093..49d2661 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 0cc63ca..7ebc9c1 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 599ce43..7b51cbb 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 d29bd1d..7499b53 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 <string.h>
diff --git a/include/polarssl/entropy.h b/include/polarssl/entropy.h
index 4485d3e..4f4f8f7 100644
--- a/include/polarssl/entropy.h
+++ b/include/polarssl/entropy.h
@@ -29,7 +29,11 @@
#include <string.h>
+#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 0116598..92efa00 100644
--- a/include/polarssl/entropy_poll.h
+++ b/include/polarssl/entropy_poll.h
@@ -29,7 +29,11 @@
#include <string.h>
+#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 a8e23d0..3792a4d 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 <string.h>
diff --git a/include/polarssl/md4.h b/include/polarssl/md4.h
index a1b5d45..b0434dd 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 <string.h>
diff --git a/include/polarssl/md5.h b/include/polarssl/md5.h
index df2a61b..bb0ebf3 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 <string.h>
diff --git a/include/polarssl/md_wrap.h b/include/polarssl/md_wrap.h
index d681a0c..634bb7d 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 64690be..3af3951 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 <stdlib.h>
diff --git a/include/polarssl/memory_buffer_alloc.h b/include/polarssl/memory_buffer_alloc.h
index 68477a4..c449752 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 <stdlib.h>
diff --git a/include/polarssl/oid.h b/include/polarssl/oid.h
index d825f4c..b1d33b6 100644
--- a/include/polarssl/oid.h
+++ b/include/polarssl/oid.h
@@ -28,7 +28,11 @@
#define POLARSSL_OID_H
#include <string.h>
+#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 cebe057..7014e42 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 91a671e..7baafb9 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 707d00a..1e4ed38 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 b61aad0..fd9b80a 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 <stdio.h>
diff --git a/include/polarssl/ripemd160.h b/include/polarssl/ripemd160.h
index 2d760c3..754322d 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 <string.h>
diff --git a/include/polarssl/rsa.h b/include/polarssl/rsa.h
index d8c8341..ce84c1c 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 e1d8e27..f5e91a4 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 <string.h>
diff --git a/include/polarssl/sha256.h b/include/polarssl/sha256.h
index 89df578..f3c00fa 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 <string.h>
diff --git a/include/polarssl/sha512.h b/include/polarssl/sha512.h
index 2c61637..b8908af 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 <string.h>
diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h
index eb7ac51..401908a 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 8707152..1fc9f98 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 <stdlib.h>
diff --git a/include/polarssl/timing.h b/include/polarssl/timing.h
index 09624fc..383120e 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 bae1244..1c504fa 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 f2b8a0c..e13f38f 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 0c79916..0fee59b 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 8e63381..0081d36 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 7e38300..b660587 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 95854d1..07118d9 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 <string.h>