boringssl/crypto
David Benjamin a70c75cfc0 Add a CRYPTO_library_init and static-initializer-less build option.
Chromium does not like static initializers, and the CPU logic uses one to
initialize CPU bits. However, the crypto library lacks an explicit
initialization function, which could complicate (no compile-time errors)
porting existing code which uses crypto/, but not ssl/.

Add an explicit CRYPTO_library_init function, but make it a no-op by default.
It only does anything (and is required) if building with
BORINGSSL_NO_STATIC_INITIALIZER.

Change-Id: I6933bdc3447fb382b1f87c788e5b8142d6f3fe39
Reviewed-on: https://boringssl-review.googlesource.com/1770
Reviewed-by: Adam Langley <agl@google.com>
2014-09-12 00:10:53 +00:00
..
aes Windows build fixes. 2014-08-11 22:10:02 +00:00
asn1 Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
base64 Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
bio Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
bn Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
buf Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
bytestring Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
chacha Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
cipher Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
conf Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
des A bunch of dead assignments. 2014-07-30 00:44:03 +00:00
dh Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
digest Readd MD4. 2014-08-26 21:51:48 +00:00
dsa Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
ec Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
ecdh Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
ecdsa Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
engine Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
err Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
evp Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
hmac Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
lhash Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
md4 Readd MD4. 2014-08-26 21:51:48 +00:00
md5 Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
modes Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
obj Don't export obj_dat.h. 2014-09-02 22:41:28 +00:00
pem unifdef a bunch of OPENSSL_NO_* ifdefs. 2014-08-28 00:41:34 +00:00
perlasm Ensure x86_64 perlasm output ends with a newline. 2014-09-10 23:02:58 +00:00
pkcs8 Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
poly1305 Fix ARM build with OPENSSL_NO_ASM. 2014-09-03 19:23:25 +00:00
rand Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
rc4 Windows build fixes. 2014-08-11 22:10:02 +00:00
rsa Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
sha Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
stack Mark all SSL_CIPHERs as const. 2014-08-18 17:55:05 +00:00
x509 Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
x509v3 Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
arm_arch.h Add a control to disable the Poly1305 NEON code. 2014-07-31 22:42:15 +00:00
CMakeLists.txt Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
cpu-arm.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
cpu-intel.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
cpu-x86_64-asm.pl Inital import. 2014-06-20 13:17:32 -07:00
cpu-x86-asm.pl Use asm directives to protect OPENSSL_cleanse. 2014-07-31 18:49:22 +00:00
crypto_error.c Move public headers to include/openssl/ 2014-07-14 22:42:18 +00:00
crypto_error.h Add ISC header to a handful of files. 2014-06-26 10:26:42 -07:00
crypto.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
directory_posix.c Support building with PNaCl. 2014-07-11 19:04:04 +00:00
directory_win.c Inital import. 2014-06-20 13:17:32 -07:00
directory.h Add visibility rules. 2014-07-31 22:03:11 +00:00
ex_data_impl.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
ex_data.c Convert all zero-argument functions to '(void)' 2014-08-21 01:06:07 +00:00
header_removed.h Add ISC header to a handful of files. 2014-06-26 10:26:42 -07:00
internal.h Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
mem.c Windows build fixes. 2014-08-11 22:10:02 +00:00
thread.c Include Windows.h in some source files. 2014-08-18 11:39:09 -07:00
time_support.c Windows build fixes. 2014-08-11 22:10:02 +00:00