mbedtls/library
Gilles Peskine db09ef6d22 Include common.h instead of config.h in library source files
In library source files, include "common.h", which takes care of
including "mbedtls/config.h" (or the alternative MBEDTLS_CONFIG_FILE)
and other things that are used throughout the library.

FROM=$'#if !defined(MBEDTLS_CONFIG_FILE)\n#include "mbedtls/config.h"\n#else\n#include MBEDTLS_CONFIG_FILE\n#endif' perl -i -0777 -pe 's~\Q$ENV{FROM}~#include "common.h"~' library/*.c 3rdparty/*/library/*.c scripts/data_files/error.fmt scripts/data_files/version_features.fmt

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-07-02 11:26:57 +02:00
..
.gitignore
aes.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
aesni.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
arc4.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
aria.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
asn1parse.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
asn1write.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
base64.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
bignum.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
blowfish.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
camellia.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ccm.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
certs.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
chacha20.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
chachapoly.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
cipher_wrap.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
cipher.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
cmac.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
CMakeLists.txt cmake: Limit scope of 3rd party definitions 2020-06-22 13:44:03 +02:00
common.h New header common.h; define MBEDTLS_STATIC_TESTABLE 2020-03-24 22:57:11 +01:00
ctr_drbg.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
debug.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
des.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
dhm.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ecdh.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ecdsa.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ecjpake.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ecp_curves.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ecp.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
entropy_poll.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
entropy.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
error.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
gcm.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
havege.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
hkdf.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
hmac_drbg.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
Makefile Include the library directory for the sake of 3rdparty 2020-07-02 11:26:57 +02:00
md2.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
md4.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
md5.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
md.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
memory_buffer_alloc.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
net_sockets.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
nist_kw.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
oid.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
padlock.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pem.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pk_wrap.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pk.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pkcs5.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pkcs11.c Revert "Remove unused TLS, NET, and X.509 files" 2020-03-19 13:36:33 +01:00
pkcs12.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pkparse.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
pkwrite.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
platform_util.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
platform.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
poly1305.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
psa_crypto_core.h Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
psa_crypto_invasive.h
psa_crypto_its.h Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
psa_crypto_se.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
psa_crypto_se.h Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
psa_crypto_service_integration.h Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
psa_crypto_slot_management.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
psa_crypto_slot_management.h Merge pull request #3382 from stevew817/feature/volatile-keys-in-SE 2020-06-26 20:27:11 +02:00
psa_crypto_storage.c Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
psa_crypto_storage.h Switch storage functions over to psa_core_key_attributes_t 2019-07-31 14:15:27 +02:00
psa_crypto.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
psa_its_file.c Add Apache-2.0 headers to all source files 2020-06-16 17:38:44 +02:00
ripemd160.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
rsa_internal.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
rsa.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
sha1.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
sha256.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
sha512.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_cache.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_ciphersuites.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_cli.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_cookie.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_msg.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_srv.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_ticket.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
ssl_tls.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
threading.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
timing.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
version_features.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
version.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509_create.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509_crl.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509_crt.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509_csr.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509write_crt.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
x509write_csr.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00
xtea.c Include common.h instead of config.h in library source files 2020-07-02 11:26:57 +02:00