fixes for Windows build

This commit is contained in:
Jacob Barthelmeh
2017-08-29 12:02:24 -06:00
parent a308a56044
commit 3dbe5d2af9
2 changed files with 3 additions and 3 deletions

View File

@@ -19610,7 +19610,7 @@ int DecodePrivateKey(WOLFSSL *ssl, word16* length)
} }
/* Return the maximum signature length. */ /* Return the maximum signature length. */
*length = wc_ecc_sig_size((ecc_key*)ssl->hsKey); *length = (word16)wc_ecc_sig_size((ecc_key*)ssl->hsKey);
goto exit_dpk; goto exit_dpk;
} }

View File

@@ -3010,9 +3010,9 @@ static int wc_ecc_make_pub_ex(ecc_key* key, ecc_curve_spec* curveIn,
{ {
int err = MP_OKAY; int err = MP_OKAY;
#ifndef WOLFSSL_ATECC508A #ifndef WOLFSSL_ATECC508A
ecc_point* base = NULL; ecc_point* base = NULL;
DECLARE_CURVE_SPECS(ECC_CURVE_FIELD_COUNT)
ecc_point* pub; ecc_point* pub;
DECLARE_CURVE_SPECS(ECC_CURVE_FIELD_COUNT)
#endif #endif
if (key == NULL) { if (key == NULL) {