]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
wolfSSL: Fix ECDH set peer to use the index when importing point
authorSean Parkinson <sean@wolfssl.com>
Mon, 7 May 2018 23:26:45 +0000 (09:26 +1000)
committerJouni Malinen <j@w1.fi>
Thu, 17 May 2018 17:08:15 +0000 (20:08 +0300)
Signed-off-by: Sean Parkinson <sean@wolfssl.com>
src/crypto/crypto_wolfssl.c

index fc9a67bff8f49adefce8bc609ba0471cf617b2e3..1d9ebee7041022e640a53f2829d73d5963d75e0a 100644 (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;