From patchwork Mon Sep 28 09:45:32 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masashi Honma X-Patchwork-Id: 523285 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41A8714017E for ; Mon, 28 Sep 2015 19:45:57 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=FlyGexUj; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id AE3B617C029; Mon, 28 Sep 2015 05:45:53 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OjF+mLM4dDqd; Mon, 28 Sep 2015 05:45:53 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2C94C17C025; Mon, 28 Sep 2015 05:45:52 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id E699817C025 for ; Mon, 28 Sep 2015 05:45:50 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XWHzIs8+bBSc for ; Mon, 28 Sep 2015 05:45:49 -0400 (EDT) Received: from mail-pa0-f52.google.com (mail-pa0-f52.google.com [209.85.220.52]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id C3AD817C00E for ; Mon, 28 Sep 2015 05:45:49 -0400 (EDT) Received: by pacex6 with SMTP id ex6so170130036pac.0 for ; Mon, 28 Sep 2015 02:45:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=i+KiDn+w6hjdwj1BsUei3mKiP6sW4TeZktD9Ytk/KMk=; b=FlyGexUjNmVjOicIkQUiX/1YKvYAEC6ZM1pMvJ8SLshp6BkWfHgjjuAvDV5+Cv2oRg 0V7LJUBKUNpS+mdQmhiowZerYtkPD/ivTqToCqUHEDy5i4MUBax64CRHmNLZpMlkba/b MevnnDy7tOO8WvkPLiLgoXDu4lpo3Uq5EQC+CaOiXkGikgI2E8Hkv34jBahrqTyoQwro mGkrY76RcSOaUB65FdeDtZHUFynzgZ0ecNDRN8CsDSSNF5YOxiyuPNtLtfPjJIg0QxcQ Yjy2nl/gafiyqUx9jS8XRlC8CQYqkgdD4oV7ldQ+MhipuBYRAj+QH5fJFcKxyNhiRqhK U1tQ== X-Received: by 10.68.137.161 with SMTP id qj1mr25730288pbb.14.1443433548402; Mon, 28 Sep 2015 02:45:48 -0700 (PDT) Received: from localhost.localdomain (p0341bd.kngwnt01.ap.so-net.ne.jp. [121.3.65.189]) by smtp.gmail.com with ESMTPSA id ol3sm4366007pbb.49.2015.09.28.02.45.47 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 28 Sep 2015 02:45:47 -0700 (PDT) From: Masashi Honma To: hostap@lists.shmoo.com Subject: [PATCH] FILS: Fix compilation with CONFIG_FILS=y Date: Mon, 28 Sep 2015 18:45:32 +0900 Message-Id: <1443433532-10882-1-git-send-email-masashi.honma@gmail.com> X-Mailer: git-send-email 1.9.1 X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com Compilation of the hostapd with CONFIG_FILS=y fails with messages below. ../src/common/wpa_common.o: In function `fils_key_auth_sk': /home/honma/hostap/hostapd/../src/common/wpa_common.c:352: undefined reference to `hmac_sha384_vector' /home/honma/hostap/hostapd/../src/common/wpa_common.c:323: undefined reference to `hmac_sha384_vector' ../src/common/wpa_common.o: In function `fils_pmk_to_ptk': /home/honma/hostap/hostapd/../src/common/wpa_common.c:257: undefined reference to `sha384_prf' collect2: ld returned 1 exit status make: *** [hostapd] Error 1 In addition, wpa_supplicant compilation fails also. ../src/common/wpa_common.o: In function `fils_key_auth_sk': /home/honma/hostap/wpa_supplicant/../src/common/wpa_common.c:352: undefined reference to `hmac_sha384_vector' /home/honma/hostap/wpa_supplicant/../src/common/wpa_common.c:323: undefined reference to `hmac_sha384_vector' ../src/common/wpa_common.o: In function `fils_pmk_to_ptk': /home/honma/hostap/wpa_supplicant/../src/common/wpa_common.c:257: undefined reference to `sha384_prf' ../src/common/wpa_common.o: In function `fils_domain_name_hash': /home/honma/hostap/wpa_supplicant/../src/common/wpa_common.c:1870: undefined reference to `crc32' collect2: ld returned 1 exit status make: *** [wpa_supplicant] Error 1 This patch fixes these issues. Signed-off-by: Masashi Honma --- hostapd/Makefile | 1 + wpa_supplicant/Makefile | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/hostapd/Makefile b/hostapd/Makefile index b062735..31a5d95 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -243,6 +243,7 @@ ifdef CONFIG_FILS CFLAGS += -DCONFIG_FILS NEED_CRC32=y NEED_AES_GCM=y +NEED_SHA384=y endif ifdef CONFIG_WNM diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 7efd7e0..68afae7 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -247,7 +247,9 @@ endif ifdef CONFIG_FILS CFLAGS += -DCONFIG_FILS +NEED_CRC32=y NEED_AES_GCM=y +NEED_SHA384=y endif ifdef CONFIG_WNM @@ -1324,6 +1326,10 @@ ifdef NEED_ECC CFLAGS += -DCONFIG_ECC endif +ifdef NEED_CRC32 +OBJS += ../src/utils/crc32.o +endif + ifdef CONFIG_NO_RANDOM_POOL CFLAGS += -DCONFIG_NO_RANDOM_POOL else