boringssl/crypto
David Benjamin a353cdb671 Wrap MSVC-only warning pragmas in a macro.
There's a __pragma expression which allows this. Android builds us Windows with
MinGW for some reason, so we actually do have to tolerate non-MSVC-compatible
Windows compilers. (Clang for Windows is much more sensible than MinGW and
intentionally mimicks MSVC.)

MinGW doesn't understand MSVC's pragmas and warns a lot. #pragma warning is
safe to suppress, so wrap those to shush them. This also lets us do away with a
few ifdefs.

Change-Id: I1f5a8bec4940d4b2d947c4c1cc9341bc15ec4972
Reviewed-on: https://boringssl-review.googlesource.com/8236
Reviewed-by: Adam Langley <agl@google.com>
2016-06-09 21:29:36 +00:00
..
aes
asn1 Fix some missing inits 2016-06-07 22:05:10 +00:00
base64 Replace base64 decoding. 2016-05-26 17:59:10 +00:00
bio Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
bn Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
buf Add BUF_MEM_reserve. 2016-05-18 19:09:06 +00:00
bytestring Make tls_open_record always in-place. 2016-06-08 18:39:07 +00:00
chacha Revert "Import chacha-x86.pl fix." 2016-06-09 19:49:12 +00:00
cipher Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
cmac
conf
curve25519 Add missing copyright header. 2016-06-08 20:13:46 +00:00
des
dh Call |BN_mod_exp_mont_consttime| in crypto/dh. 2016-05-11 22:34:19 +00:00
digest
dsa Fix DSA, preserve BN_FLG_CONSTTIME 2016-06-07 19:29:18 +00:00
ec
ecdh
ecdsa
engine
err Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
evp Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
hkdf Fix HKDF leak. 2016-05-20 15:42:01 +00:00
hmac
lhash Use non-deprecated methods on windows. 2016-05-19 20:30:50 +00:00
md4
md5
modes Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
newhope Be consistent about 𝑥_tests.txt 2016-06-06 15:57:46 +00:00
obj Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
pem Reject inappropriate private key encryption ciphers. 2016-05-03 16:30:08 +00:00
perlasm
pkcs8
poly1305 Be consistent about 𝑥_tests.txt 2016-06-06 15:57:46 +00:00
rand Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
rc4
rsa Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
sha
stack Fix stack macro const-ness. 2016-05-13 18:24:57 +00:00
test Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
x509 Ensure verify error is set when X509_verify_cert() fails. 2016-06-09 17:29:39 +00:00
x509v3 Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
CMakeLists.txt
constant_time_test.c
cpu-aarch64-linux.c
cpu-arm-linux.c
cpu-arm.c
cpu-intel.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
crypto.c Add CRYPTO_has_asm. 2016-05-17 19:03:31 +00:00
ex_data.c Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
internal.h Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
mem.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
refcount_c11.c
refcount_lock.c Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
refcount_test.c
thread_none.c Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
thread_pthread.c Split unlock functions into read/write variants. 2016-05-31 21:09:29 +00:00
thread_test.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
thread_win.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
thread.c Wrap MSVC-only warning pragmas in a macro. 2016-06-09 21:29:36 +00:00
time_support.c