From: Sean Parkinson Date: Mon, 7 May 2018 23:26:45 +0000 (+1000) Subject: wolfSSL: Fix ECDH set peer to use the index when importing point X-Git-Tag: hostap_2_7~333 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b01270c8a133c4ef9d64690a8dd202c125a2907;p=thirdparty%2Fhostap.git wolfSSL: Fix ECDH set peer to use the index when importing point Signed-off-by: Sean Parkinson --- diff --git a/src/crypto/crypto_wolfssl.c b/src/crypto/crypto_wolfssl.c index fc9a67bff..1d9ebee70 100644 --- a/src/crypto/crypto_wolfssl.c +++ b/src/crypto/crypto_wolfssl.c @@ -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;