Figure out endianness at compile-time, using _BYTE_ORDER from
authormiod <miod@openbsd.org>
Wed, 23 Apr 2014 18:40:39 +0000 (18:40 +0000)
committermiod <miod@openbsd.org>
Wed, 23 Apr 2014 18:40:39 +0000 (18:40 +0000)
commit21951995da0d211833eb68722f3ca632c979838b
tree08a717b5eec2fb0d1f244ad8aa045dc9e9725013
parentadf22013be8a4dbec4a71f6e077ff65be310afd3
Figure out endianness at compile-time, using _BYTE_ORDER from
<machine/endian.h>, rather than writing 1 to a 32-bit variable and checking
whether the first byte is nonzero.

tweaks and ok matthew@; ok beck@ tedu@
18 files changed:
lib/libcrypto/evp/bio_ok.c
lib/libcrypto/modes/ctr128.c
lib/libcrypto/modes/gcm128.c
lib/libcrypto/modes/modes_lcl.h
lib/libcrypto/modes/xts128.c
lib/libcrypto/rc4/rc4_enc.c
lib/libcrypto/sha/sha256.c
lib/libcrypto/sha/sha_locl.h
lib/libssl/d1_pkt.c
lib/libssl/src/crypto/evp/bio_ok.c
lib/libssl/src/crypto/modes/ctr128.c
lib/libssl/src/crypto/modes/gcm128.c
lib/libssl/src/crypto/modes/modes_lcl.h
lib/libssl/src/crypto/modes/xts128.c
lib/libssl/src/crypto/rc4/rc4_enc.c
lib/libssl/src/crypto/sha/sha256.c
lib/libssl/src/crypto/sha/sha_locl.h
lib/libssl/src/ssl/d1_pkt.c