mbedtls/library
Hanno Becker 0a38f1ac28 Undo API change from SHA1 deprecation
The previous commit bd5ceee484f201b90a384636ba12de86bd330cba removed
the definition of the global constants
- mbedtls_test_ca_crt_rsa_len,
- mbedtls_test_cli_crt_rsa_len,
- mbedtls_test_ca_crt_rsa, and
- mbedtls_test_cli_crt_rsa.
This commit restores these to maintain ABI compatibility.

Further, it was noticed that without SHA256_C being enabled the
previous code failed to compile because because the SHA1 resp. SHA256
certificates were only defined when the respective SHAXXX_C options
were set, but the emission of the global variable mbedtls_test_ca_crt
was unconditionally defined through the SHA256
certificate. Previously, the RSA SHA1 certificate was unconditionally
defined and used for that.

As a remedy, this commit makes sure some RSA certificate is defined
and exported through the following rule:
1. If SHA256_C is active, define an RSA SHA256 certificate and export
   it as mbedtls_test_ca_crt. Also, define SHA1 certificates only if
   SHA1_C is set.
2. If SHA256_C is not set, always define SHA1 certificate and export
   it as mbedtls_test_ca_crt.
2017-07-20 12:36:53 +02:00
..
.gitignore
aes.c Change return type of AES decrypt and encrypt 2017-05-16 10:22:37 +01:00
aesni.c
arc4.c
asn1parse.c
asn1write.c
base64.c Add comment to integer overflow fix in base64.c 2017-02-15 23:31:07 +02:00
bignum.c Merge remote-tracking branch 'hanno/mpi_read_file_underflow' into development 2017-06-08 19:48:03 +02:00
blowfish.c
camellia.c
ccm.c
certs.c Undo API change from SHA1 deprecation 2017-07-20 12:36:53 +02:00
cipher.c
cipher_wrap.c
cmac.c Fix check-doxy-blocks.pl errors (cmac.c ecjpake.h) 2017-05-12 00:18:04 +01:00
CMakeLists.txt Update the version number to 2.5.1 2017-06-20 23:08:10 +01:00
ctr_drbg.c
debug.c
des.c
dhm.c Check return code of mbedtls_mpi_fill_random 2017-07-20 01:23:32 +02:00
ecdh.c
ecdsa.c
ecjpake.c
ecp.c Check return code of mbedtls_mpi_fill_random 2017-07-20 01:23:32 +02:00
ecp_curves.c ECP: Add module and function level replacement options. 2017-05-11 22:42:14 +01:00
entropy.c
entropy_poll.c
error.c
gcm.c fix for issue 1118: check if iv is zero in gcm. 2017-07-20 00:11:24 +02:00
havege.c
hmac_drbg.c
Makefile
md.c
md2.c
md4.c
md5.c
md_wrap.c
memory_buffer_alloc.c
net_sockets.c
oid.c
padlock.c
pem.c
pk.c Fix data loss in unsigned int cast in PK 2017-05-11 21:55:17 +01:00
pk_wrap.c Fix data loss in unsigned int cast in PK 2017-05-11 21:55:17 +01:00
pkcs5.c
pkcs11.c
pkcs12.c
pkparse.c
pkwrite.c
platform.c
ripemd160.c
rsa.c Merge remote-tracking branch 'restricted/iotssl-1138-rsa-padding-check-restricted' into development-restricted 2017-06-08 20:31:06 +02:00
sha1.c
sha256.c
sha512.c
ssl_cache.c
ssl_ciphersuites.c Undo API change 2017-07-20 12:36:53 +02:00
ssl_cli.c Simplify retaining of messages for future processing 2017-06-08 10:12:16 +01:00
ssl_cookie.c Fix resource leak when using mutex and ssl_cookie 2017-03-02 12:26:11 +00:00
ssl_srv.c Merge remote-tracking branch 'gilles/iotssl-1223/development' into development 2017-06-06 20:11:36 +02:00
ssl_ticket.c
ssl_tls.c Ensure application data records are not kept when fully processed 2017-06-09 10:42:03 +01:00
threading.c Remove mutexes from ECP hardware acceleration 2017-07-19 02:07:59 +01:00
timing.c
version.c
version_features.c Update version features with ECP macros 2017-05-11 22:42:14 +01:00
x509.c X.509 self-tests: replaced SHA-1 certificates by SHA-256 2017-06-06 18:44:13 +02:00
x509_create.c
x509_crl.c Fix memory leak in mbedtls_x509_crl_parse() 2017-02-28 14:51:31 +00:00
x509_crt.c Resource leak fix on windows platform 2017-07-20 01:02:40 +02:00
x509_csr.c
x509write_crt.c
x509write_csr.c
xtea.c