boringssl/crypto/cipher
Brian Smith dc6c1b8381 Fix build when using Visual Studio 2015 Update 1.
Many of the compatibility issues are described at
https://msdn.microsoft.com/en-us/library/mt612856.aspx. The macros
that suppressed warnings on a per-function basis no longer work in
Update 1, so replace them with #pragmas. Update 1 warns when |size_t|
arguments to |printf| are casted, so stop doing that casting.
Unfortunately, this requires an ugly hack to continue working in
MSVC 2013 as MSVC 2013 doesn't support "%zu". Finally, Update 1 has new
warnings, some of which need to be suppressed.

---

Updated by davidben to give up on suppressing warnings in crypto/x509 and
crypto/x509v3 as those directories aren't changed much from upstream. In each
of these cases, upstream opted just blindly initialize the variable, so do the
same. Also switch C4265 to level 4, per Microsoft's recommendation and work
around a bug in limits.h that happens to get fixed by Google include order
style.

(limits.h is sensitive to whether corecrt.h, pulled in by stddef.h and some
other headers, is included before it. The reason it affected just one file is
we often put the file's header first, which means base.h is pulling in
stddef.h. Relying on this is ugly, but it's no worse than what everything else
is doing and this doesn't seem worth making something as tame as limits.h so
messy to use.)

Change-Id: I02d1f935356899f424d3525d03eca401bfa3e6cd
Reviewed-on: https://boringssl-review.googlesource.com/7480
Reviewed-by: David Benjamin <davidben@google.com>
2016-03-25 21:39:52 +00:00
..
test Test different chunk sizes in cipher_test. 2016-02-24 18:12:57 +00:00
aead_test.cc Test AEAD interface with aliased buffers. 2016-02-29 22:14:18 +00:00
aead.c Add SSL_get_ivs. 2015-11-04 19:45:28 +00:00
cipher_test.cc Test different chunk sizes in cipher_test. 2016-02-24 18:12:57 +00:00
cipher.c Add |EVP_rc2_cbc| and implement |EVP_CTRL_SET_RC2_KEY_BITS|. 2015-08-05 21:23:56 +00:00
CMakeLists.txt Add a run_tests target to run all tests. 2015-10-26 20:33:44 +00:00
derive_key.c
e_aes.c Fix build when using Visual Studio 2015 Update 1. 2016-03-25 21:39:52 +00:00
e_chacha20poly1305.c Use UINT64_C instead of unsigned long long integer constant. 2016-03-18 23:04:48 +00:00
e_des.c Re-add |EVP_des_ede|, which is ECB. 2015-08-20 21:33:21 +00:00
e_null.c
e_rc2.c Add |EVP_rc2_cbc| and implement |EVP_CTRL_SET_RC2_KEY_BITS|. 2015-08-05 21:23:56 +00:00
e_rc4.c Remove the stitched RC4-MD5 code and use the generic one. 2015-12-16 23:57:42 +00:00
e_ssl3.c Add SSL_get_ivs. 2015-11-04 19:45:28 +00:00
e_tls.c Remove the stitched RC4-MD5 code and use the generic one. 2015-12-16 23:57:42 +00:00
internal.h Add SSL_get_ivs. 2015-11-04 19:45:28 +00:00
tls_cbc.c Add missing internal includes. 2016-03-20 16:38:54 +00:00