boringssl/crypto/ec
David Benjamin 8a58933db0 Remove the CRYPTO_EX_new callback.
This callback is never used. The one caller I've ever seen is in Android
code which isn't built with BoringSSL and it was a no-op.

It also doesn't actually make much sense. A callback cannot reasonably
assume that it sees every, say, SSL_CTX created because the index may be
registered after the first SSL_CTX is created. Nor is there any point in
an EX_DATA consumer in one file knowing about an SSL_CTX created in
completely unrelated code.

Replace all the pointers with a typedef to int*. This will ensure code
which passes NULL or 0 continues to compile while breaking code which
passes an actual function.

This simplifies some object creation functions which now needn't worry
about CRYPTO_new_ex_data failing. (Also avoids bouncing on the lock, but
it's taking a read lock, so this doesn't really matter.)

BUG=391192

Change-Id: I02893883c6fa8693682075b7b130aa538a0a1437
Reviewed-on: https://boringssl-review.googlesource.com/6625
Reviewed-by: Adam Langley <agl@google.com>
2015-12-15 21:29:46 +00:00
..
asm Remove dead code in p256-x86_64. 2015-11-20 23:45:43 +00:00
CMakeLists.txt Add Intel's P-256 2015-11-03 22:08:47 +00:00
ec_asn1.c Enforce that |EC_KEY| private key is in [0, group->order). 2015-12-15 18:45:03 +00:00
ec_key.c Remove the CRYPTO_EX_new callback. 2015-12-15 21:29:46 +00:00
ec_montgomery.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
ec_test.cc Remove stl_compat.h. 2015-11-11 22:19:36 +00:00
ec.c Add |EC_GROUP_get0_order| to replace |EC_GROUP_get_order|. 2015-12-15 18:18:13 +00:00
example_mul.c Add a CRYPTO_library_init and static-initializer-less build option. 2014-09-12 00:10:53 +00:00
internal.h Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
oct.c Don't encode or decode ∞. 2015-11-12 23:52:37 +00:00
p224-64.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
p256-64.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
p256-x86_64-table.h Add Intel's P-256 2015-11-03 22:08:47 +00:00
p256-x86_64.c Add |EC_METHOD| method for verifying public key order. 2015-12-15 18:39:07 +00:00
simple.c Remove EC_GFp_simple_method (dead code). 2015-11-12 20:07:51 +00:00
util-64.c Add 64-bit, P-256 implementation. 2015-04-16 13:53:05 -07:00
wnaf.c Remove |EC_POINTs_mul| & simplify p256-x86_64. 2015-11-19 01:08:46 +00:00