wolfSSL: Fix ECDH set peer to use the index when importing point

Signed-off-by: Sean Parkinson <sean@wolfssl.com>
This commit is contained in:
Sean Parkinson 2018-05-08 09:26:45 +10:00 committed by Jouni Malinen
parent ffff7f7095
commit 2b01270c8a

View file

@ -1762,7 +1762,7 @@ struct wpabuf * crypto_ecdh_set_peerkey(struct crypto_ecdh *ecdh, int inc_y,
goto fail;
ret = wc_ecc_import_point_der(wpabuf_mhead(pubkey), 1 + 2 * key_len,
ecdh->ec->key.dp->id, point);
ecdh->ec->key.idx, point);
if (ret != MP_OKAY)
goto fail;