From 2b01270c8a133c4ef9d64690a8dd202c125a2907 Mon Sep 17 00:00:00 2001 From: Sean Parkinson Date: Tue, 8 May 2018 09:26:45 +1000 Subject: [PATCH] wolfSSL: Fix ECDH set peer to use the index when importing point Signed-off-by: Sean Parkinson --- src/crypto/crypto_wolfssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;