Rename include directory to mbedtls

This commit is contained in:
Manuel Pégourié-Gonnard 2015-03-09 17:05:11 +00:00
parent 129db08c90
commit 7f8099773e
250 changed files with 908 additions and 908 deletions

View file

@ -17,8 +17,8 @@ lib:
cd library && $(MAKE) all && cd ..
install:
mkdir -p $(DESTDIR)/include/polarssl
cp -r include/polarssl $(DESTDIR)/include
mkdir -p $(DESTDIR)/include/mbedtls
cp -r include/mbedtls $(DESTDIR)/include
mkdir -p $(DESTDIR)/lib
cp library/libmbedtls.* $(DESTDIR)/lib
@ -34,7 +34,7 @@ install:
done
uninstall:
rm -rf $(DESTDIR)/include/polarssl
rm -rf $(DESTDIR)/include/mbedtls
rm -f $(DESTDIR)/lib/libmbedtls.*
for p in programs/*/* ; do \

View file

@ -5,7 +5,7 @@ README for mbed TLS
Configuration
=============
mbed TLS should build out of the box on most systems. Some platform specific options are available in the fully-documented configuration file *include/polarssl/config.h*, which is also the place where features can be selected.
mbed TLS should build out of the box on most systems. Some platform specific options are available in the fully-documented configuration file *include/mbedtls/config.h*, which is also the place where features can be selected.
This file can be edited manually, or in a more programmatic way using the Perl
script *scripts/config.pl* (use *--help* for usage instructions).

View file

@ -7,9 +7,9 @@ this target. They can be used as a basis for custom configurations.
These files are complete replacements for the default config.h. To use one of
them, you can pick one of the following methods:
1. Replace the default file include/polarssl/config.h with the chosen one.
1. Replace the default file include/mbedtls/config.h with the chosen one.
(Depending on your compiler, you may need to ajust the line with
#include "polarssl/check_config.h" then.)
#include "mbedtls/check_config.h" then.)
2. Define POLARSSL_CONFIG_FILE and adjust the include path accordingly.
For example, using make:

View file

@ -57,7 +57,7 @@
/*
* Save RAM at the expense of interoperability: do this only if you control
* both ends of the connection! (See comments in "polarssl/ssl.h".)
* both ends of the connection! (See comments in "mbedtls/ssl.h".)
* The optimal size here depends on the typical size of records.
*/
#define SSL_MAX_CONTENT_LEN 512

View file

@ -52,6 +52,6 @@
/* For testing with compat.sh */
#define POLARSSL_FS_IO
#include "polarssl/check_config.h"
#include "mbedtls/check_config.h"
#endif /* POLARSSL_CONFIG_H */

View file

@ -36,6 +36,6 @@
#define POLARSSL_SSL_SRV_C
#define POLARSSL_SSL_TLS_C
#include "polarssl/check_config.h"
#include "mbedtls/check_config.h"
#endif /* POLARSSL_CONFIG_H */

View file

@ -85,12 +85,12 @@
/*
* Save RAM at the expense of interoperability: do this only if you control
* both ends of the connection! (See coments in "polarssl/ssl.h".)
* both ends of the connection! (See coments in "mbedtls/ssl.h".)
* The minimum size here depends on the certificate chain used as well as the
* typical size of records.
*/
#define SSL_MAX_CONTENT_LEN 1024
#include "polarssl/check_config.h"
#include "mbedtls/check_config.h"
#endif /* POLARSSL_CONFIG_H */

2
include/.gitignore vendored
View file

@ -1,4 +1,4 @@
Makefile
*.sln
*.vcxproj
polarssl/check_config
mbedtls/check_config

View file

@ -2,10 +2,10 @@ option(INSTALL_MBEDTLS_HEADERS "Install mbed TLS headers." ON)
if(INSTALL_MBEDTLS_HEADERS)
file(GLOB headers "polarssl/*.h")
file(GLOB headers "mbedtls/*.h")
install(FILES ${headers}
DESTINATION include/polarssl
DESTINATION include/mbedtls
PERMISSIONS OWNER_READ OWNER_WRITE GROUP_READ WORLD_READ)
endif(INSTALL_MBEDTLS_HEADERS)

View file

@ -75,7 +75,7 @@
* Used in:
* library/timing.c
* library/padlock.c
* include/polarssl/bn_mul.h
* include/mbedtls/bn_mul.h
*
* Comment to disable the use of assembly code.
*/

View file

@ -1,5 +1,5 @@
# Also see "include/polarssl/config.h"
# Also see "include/mbedtls/config.h"
# To compile on MinGW: add "-lws2_32" to LDFLAGS or define WINDOWS in your
# environment

View file

@ -27,7 +27,7 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
@ -36,17 +36,17 @@
#include <string.h>
#include "polarssl/aes.h"
#include "mbedtls/aes.h"
#if defined(POLARSSL_PADLOCK_C)
#include "polarssl/padlock.h"
#include "mbedtls/padlock.h"
#endif
#if defined(POLARSSL_AESNI_C)
#include "polarssl/aesni.h"
#include "mbedtls/aesni.h"
#endif
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -26,14 +26,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_AESNI_C)
#include "polarssl/aesni.h"
#include "mbedtls/aesni.h"
#include <string.h>

View file

@ -26,20 +26,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ARC4_C)
#include "polarssl/arc4.h"
#include "mbedtls/arc4.h"
#include <string.h>
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -21,23 +21,23 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ASN1_PARSE_C)
#include "polarssl/asn1.h"
#include "mbedtls/asn1.h"
#include <string.h>
#if defined(POLARSSL_BIGNUM_C)
#include "polarssl/bignum.h"
#include "mbedtls/bignum.h"
#endif
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define polarssl_malloc malloc

View file

@ -21,19 +21,19 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ASN1_WRITE_C)
#include "polarssl/asn1write.h"
#include "mbedtls/asn1write.h"
#include <string.h>
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define polarssl_malloc malloc

View file

@ -21,14 +21,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_BASE64_C)
#include "polarssl/base64.h"
#include "mbedtls/base64.h"
#if defined(_MSC_VER) && !defined(EFIX64) && !defined(EFI32)
#include <basetsd.h>
@ -40,7 +40,7 @@ typedef UINT32 uint32_t;
#if defined(POLARSSL_SELF_TEST)
#include <string.h>
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -28,20 +28,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_BIGNUM_C)
#include "polarssl/bignum.h"
#include "polarssl/bn_mul.h"
#include "mbedtls/bignum.h"
#include "mbedtls/bn_mul.h"
#include <string.h>
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#include <stdlib.h>

View file

@ -27,14 +27,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_BLOWFISH_C)
#include "polarssl/blowfish.h"
#include "mbedtls/blowfish.h"
#include <string.h>

View file

@ -27,20 +27,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_CAMELLIA_C)
#include "polarssl/camellia.h"
#include "mbedtls/camellia.h"
#include <string.h>
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -30,20 +30,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_CCM_C)
#include "polarssl/ccm.h"
#include "mbedtls/ccm.h"
#include <string.h>
#if defined(POLARSSL_SELF_TEST) && defined(POLARSSL_AES_C)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -21,7 +21,7 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif

View file

@ -25,25 +25,25 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_CIPHER_C)
#include "polarssl/cipher.h"
#include "polarssl/cipher_wrap.h"
#include "mbedtls/cipher.h"
#include "mbedtls/cipher_wrap.h"
#include <stdlib.h>
#include <string.h>
#if defined(POLARSSL_GCM_C)
#include "polarssl/gcm.h"
#include "mbedtls/gcm.h"
#endif
#if defined(POLARSSL_CCM_C)
#include "polarssl/ccm.h"
#include "mbedtls/ccm.h"
#endif
#if defined(POLARSSL_ARC4_C) || defined(POLARSSL_CIPHER_NULL_CIPHER)

View file

@ -25,41 +25,41 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_CIPHER_C)
#include "polarssl/cipher_wrap.h"
#include "mbedtls/cipher_wrap.h"
#if defined(POLARSSL_AES_C)
#include "polarssl/aes.h"
#include "mbedtls/aes.h"
#endif
#if defined(POLARSSL_ARC4_C)
#include "polarssl/arc4.h"
#include "mbedtls/arc4.h"
#endif
#if defined(POLARSSL_CAMELLIA_C)
#include "polarssl/camellia.h"
#include "mbedtls/camellia.h"
#endif
#if defined(POLARSSL_DES_C)
#include "polarssl/des.h"
#include "mbedtls/des.h"
#endif
#if defined(POLARSSL_BLOWFISH_C)
#include "polarssl/blowfish.h"
#include "mbedtls/blowfish.h"
#endif
#if defined(POLARSSL_GCM_C)
#include "polarssl/gcm.h"
#include "mbedtls/gcm.h"
#endif
#if defined(POLARSSL_CCM_C)
#include "polarssl/ccm.h"
#include "mbedtls/ccm.h"
#endif
#if defined(POLARSSL_CIPHER_NULL_CIPHER)
@ -67,7 +67,7 @@
#endif
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#define polarssl_malloc malloc

View file

@ -26,14 +26,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_CTR_DRBG_C)
#include "polarssl/ctr_drbg.h"
#include "mbedtls/ctr_drbg.h"
#include <string.h>
@ -43,7 +43,7 @@
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -21,14 +21,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_DEBUG_C)
#include "polarssl/debug.h"
#include "mbedtls/debug.h"
#include <stdarg.h>
#include <stdio.h>
@ -45,7 +45,7 @@
#endif /* _MSC_VER */
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#define polarssl_snprintf snprintf
#endif

View file

@ -27,20 +27,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_DES_C)
#include "polarssl/des.h"
#include "mbedtls/des.h"
#include <string.h>
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -26,27 +26,27 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_DHM_C)
#include "polarssl/dhm.h"
#include "mbedtls/dhm.h"
#include <string.h>
#if defined(POLARSSL_PEM_PARSE_C)
#include "polarssl/pem.h"
#include "mbedtls/pem.h"
#endif
#if defined(POLARSSL_ASN1_PARSE_C)
#include "polarssl/asn1.h"
#include "mbedtls/asn1.h"
#endif
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>
@ -552,7 +552,7 @@ int dhm_parse_dhmfile( dhm_context *dhm, const char *path )
#if defined(POLARSSL_SELF_TEST)
#include "polarssl/certs.h"
#include "mbedtls/certs.h"
/*
* Checkup routine

View file

@ -28,14 +28,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ECDH_C)
#include "polarssl/ecdh.h"
#include "mbedtls/ecdh.h"
#include <string.h>

View file

@ -27,20 +27,20 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ECDSA_C)
#include "polarssl/ecdsa.h"
#include "polarssl/asn1write.h"
#include "mbedtls/ecdsa.h"
#include "mbedtls/asn1write.h"
#include <string.h>
#if defined(POLARSSL_ECDSA_DETERMINISTIC)
#include "polarssl/hmac_drbg.h"
#include "mbedtls/hmac_drbg.h"
#endif
#if defined(POLARSSL_ECDSA_DETERMINISTIC)

View file

@ -42,19 +42,19 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ECP_C)
#include "polarssl/ecp.h"
#include "mbedtls/ecp.h"
#include <string.h>
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdlib.h>
#include <stdio.h>

View file

@ -21,14 +21,14 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ECP_C)
#include "polarssl/ecp.h"
#include "mbedtls/ecp.h"
#include <string.h>

View file

@ -21,15 +21,15 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ENTROPY_C)
#include "polarssl/entropy.h"
#include "polarssl/entropy_poll.h"
#include "mbedtls/entropy.h"
#include "mbedtls/entropy_poll.h"
#include <string.h>
@ -39,7 +39,7 @@
#if defined(POLARSSL_SELF_TEST)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf
@ -47,7 +47,7 @@
#endif /* POLARSSL_SELF_TEST */
#if defined(POLARSSL_HAVEGE_C)
#include "polarssl/havege.h"
#include "mbedtls/havege.h"
#endif
/* Implementation that should never be optimized out by the compiler */

View file

@ -21,22 +21,22 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ENTROPY_C)
#include "polarssl/entropy.h"
#include "polarssl/entropy_poll.h"
#include "mbedtls/entropy.h"
#include "mbedtls/entropy_poll.h"
#if defined(POLARSSL_TIMING_C)
#include <string.h>
#include "polarssl/timing.h"
#include "mbedtls/timing.h"
#endif
#if defined(POLARSSL_HAVEGE_C)
#include "polarssl/havege.h"
#include "mbedtls/havege.h"
#endif
#if !defined(POLARSSL_NO_PLATFORM_ENTROPY)

View file

@ -21,18 +21,18 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_ERROR_C) || defined(POLARSSL_ERROR_STRERROR_DUMMY)
#include "polarssl/error.h"
#include "mbedtls/error.h"
#include <string.h>
#endif
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#define polarssl_snprintf snprintf
#endif
@ -42,143 +42,143 @@
#include <stdio.h>
#if defined(POLARSSL_AES_C)
#include "polarssl/aes.h"
#include "mbedtls/aes.h"
#endif
#if defined(POLARSSL_BASE64_C)
#include "polarssl/base64.h"
#include "mbedtls/base64.h"
#endif
#if defined(POLARSSL_BIGNUM_C)
#include "polarssl/bignum.h"
#include "mbedtls/bignum.h"
#endif
#if defined(POLARSSL_BLOWFISH_C)
#include "polarssl/blowfish.h"
#include "mbedtls/blowfish.h"
#endif
#if defined(POLARSSL_CAMELLIA_C)
#include "polarssl/camellia.h"
#include "mbedtls/camellia.h"
#endif
#if defined(POLARSSL_CCM_C)
#include "polarssl/ccm.h"
#include "mbedtls/ccm.h"
#endif
#if defined(POLARSSL_CIPHER_C)
#include "polarssl/cipher.h"
#include "mbedtls/cipher.h"
#endif
#if defined(POLARSSL_CTR_DRBG_C)
#include "polarssl/ctr_drbg.h"
#include "mbedtls/ctr_drbg.h"
#endif
#if defined(POLARSSL_DES_C)
#include "polarssl/des.h"
#include "mbedtls/des.h"
#endif
#if defined(POLARSSL_DHM_C)
#include "polarssl/dhm.h"
#include "mbedtls/dhm.h"
#endif
#if defined(POLARSSL_ECP_C)
#include "polarssl/ecp.h"
#include "mbedtls/ecp.h"
#endif
#if defined(POLARSSL_ENTROPY_C)
#include "polarssl/entropy.h"
#include "mbedtls/entropy.h"
#endif
#if defined(POLARSSL_GCM_C)
#include "polarssl/gcm.h"
#include "mbedtls/gcm.h"
#endif
#if defined(POLARSSL_HMAC_DRBG_C)
#include "polarssl/hmac_drbg.h"
#include "mbedtls/hmac_drbg.h"
#endif
#if defined(POLARSSL_MD_C)
#include "polarssl/md.h"
#include "mbedtls/md.h"
#endif
#if defined(POLARSSL_MD2_C)
#include "polarssl/md2.h"
#include "mbedtls/md2.h"
#endif
#if defined(POLARSSL_MD4_C)
#include "polarssl/md4.h"
#include "mbedtls/md4.h"
#endif
#if defined(POLARSSL_MD5_C)
#include "polarssl/md5.h"
#include "mbedtls/md5.h"
#endif
#if defined(POLARSSL_NET_C)
#include "polarssl/net.h"
#include "mbedtls/net.h"
#endif
#if defined(POLARSSL_OID_C)
#include "polarssl/oid.h"
#include "mbedtls/oid.h"
#endif
#if defined(POLARSSL_PADLOCK_C)
#include "polarssl/padlock.h"
#include "mbedtls/padlock.h"
#endif
#if defined(POLARSSL_PBKDF2_C)
#include "polarssl/pbkdf2.h"
#include "mbedtls/pbkdf2.h"
#endif
#if defined(POLARSSL_PEM_PARSE_C) || defined(POLARSSL_PEM_WRITE_C)
#include "polarssl/pem.h"
#include "mbedtls/pem.h"
#endif
#if defined(POLARSSL_PK_C)
#include "polarssl/pk.h"
#include "mbedtls/pk.h"
#endif
#if defined(POLARSSL_PKCS12_C)
#include "polarssl/pkcs12.h"
#include "mbedtls/pkcs12.h"
#endif
#if defined(POLARSSL_PKCS5_C)
#include "polarssl/pkcs5.h"
#include "mbedtls/pkcs5.h"
#endif
#if defined(POLARSSL_RIPEMD160_C)
#include "polarssl/ripemd160.h"
#include "mbedtls/ripemd160.h"
#endif
#if defined(POLARSSL_RSA_C)
#include "polarssl/rsa.h"
#include "mbedtls/rsa.h"
#endif
#if defined(POLARSSL_SHA1_C)
#include "polarssl/sha1.h"
#include "mbedtls/sha1.h"
#endif
#if defined(POLARSSL_SHA256_C)
#include "polarssl/sha256.h"
#include "mbedtls/sha256.h"
#endif
#if defined(POLARSSL_SHA512_C)
#include "polarssl/sha512.h"
#include "mbedtls/sha512.h"
#endif
#if defined(POLARSSL_SSL_TLS_C)
#include "polarssl/ssl.h"
#include "mbedtls/ssl.h"
#endif
#if defined(POLARSSL_THREADING_C)
#include "polarssl/threading.h"
#include "mbedtls/threading.h"
#endif
#if defined(POLARSSL_X509_USE_C) || defined(POLARSSL_X509_CREATE_C)
#include "polarssl/x509.h"
#include "mbedtls/x509.h"
#endif
#if defined(POLARSSL_XTEA_C)
#include "polarssl/xtea.h"
#include "mbedtls/xtea.h"
#endif
#if defined(_MSC_VER) && !defined snprintf && !defined(EFIX64) && \

View file

@ -31,24 +31,24 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_GCM_C)
#include "polarssl/gcm.h"
#include "mbedtls/gcm.h"
#include <string.h>
#if defined(POLARSSL_AESNI_C)
#include "polarssl/aesni.h"
#include "mbedtls/aesni.h"
#endif
#if defined(POLARSSL_SELF_TEST) && defined(POLARSSL_AES_C)
#if defined(POLARSSL_PLATFORM_C)
#include "polarssl/platform.h"
#include "mbedtls/platform.h"
#else
#include <stdio.h>
#define polarssl_printf printf

View file

@ -28,15 +28,15 @@
*/
#if !defined(POLARSSL_CONFIG_FILE)
#include "polarssl/config.h"
#include "mbedtls/config.h"
#else
#include POLARSSL_CONFIG_FILE
#endif
#if defined(POLARSSL_HAVEGE_C)
#include "polarssl/havege.h"
#include "polarssl/timing.h"
#include "mbedtls/havege.h"
#include "mbedtls/timing.h"
#include <string.h>

Some files were not shown because too many files have changed in this diff Show more