Add CRYPTO_EX_DATA; remove EC_EXTRA_DATA
authorRich Salz <rsalz@akamai.com>
Tue, 5 Jan 2016 18:06:03 +0000 (13:06 -0500)
committerRich Salz <rsalz@openssl.org>
Wed, 13 Jan 2016 19:32:59 +0000 (14:32 -0500)
commit3aef36ffef89849348049296892327e6fdf9d705
treea8a89aedef46029fcd855e4d9ad1d19c279b8483
parent8ffcca65861520fb95e4603b2cb80b3028e56baa
Add CRYPTO_EX_DATA; remove EC_EXTRA_DATA

Add CRYPTO_EX_DATA add EndC_KEY_[gs]et_method, From Roumen Petrov.
Had to add various exdata calls to init/copy/free the exdata.
Had to remove const from some EC functions because exdata isn't
const-correct. :(
Also remove EC_EXTRA_DATA and use a union to hold the possible
pre-computed values and an enum to tell which value is in the
union. (Rich Salz)

Reviewed-by: Dr. Stephen Henson <steve@openssl.org>
15 files changed:
crypto/ec/ec_key.c
crypto/ec/ec_kmeth.c
crypto/ec/ec_lcl.h
crypto/ec/ec_lib.c
crypto/ec/ec_mult.c
crypto/ec/ecp_nistp224.c
crypto/ec/ecp_nistp256.c
crypto/ec/ecp_nistp521.c
crypto/ec/ecp_nistz256.c
doc/crypto/CRYPTO_get_ex_new_index.pod
doc/crypto/EC_KEY_new.pod
doc/crypto/ec.pod
include/openssl/crypto.h
include/openssl/ec.h
util/libeay.num