c89 build with ECC compresed key

pull/748/head
Jacob Barthelmeh 2017-02-10 10:09:45 -07:00
parent e307f3e89d
commit 6c55701725
1 changed files with 4 additions and 3 deletions

View File

@ -3891,10 +3891,10 @@ int wc_ecc_import_point_der(byte* in, word32 inLen, const int curve_idx,
#ifdef HAVE_COMP_KEY
if (err == MP_OKAY && compressed == 1) { /* build y */
mp_int t1, t2;
DECLARE_CURVE_SPECS(3)
int did_init = 0;
DECLARE_CURVE_SPECS(3)
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
err = MEMORY_E;
else
@ -4495,10 +4495,11 @@ int wc_ecc_import_x963_ex(const byte* in, word32 inLen, ecc_key* key,
#ifdef HAVE_COMP_KEY
if (err == MP_OKAY && compressed == 1) { /* build y */
DECLARE_CURVE_SPECS(3)
mp_int t1, t2;
int did_init = 0;
DECLARE_CURVE_SPECS(3)
if (mp_init_multi(&t1, &t2, NULL, NULL, NULL, NULL) != MP_OKAY)
err = MEMORY_E;
else