Re: git: ef1134110e80 - stable/13 - wpa: Fix WITHOUT_CRYPT build

From: Ed Maste <emaste_at_freebsd.org>
Date: Mon, 08 Nov 2021 19:38:38 UTC
On Thu, 4 Nov 2021 at 14:32, Cy Schubert <cy@freebsd.org> wrote:
>
> The branch stable/13 has been updated by cy:
>
> URL: https://cgit.FreeBSD.org/src/commit/?id=ef1134110e80fe31792d01758b055a4bbec7de69
>
> commit ef1134110e80fe31792d01758b055a4bbec7de69
> Author:     Cy Schubert <cy@FreeBSD.org>
> AuthorDate: 2021-10-28 23:55:48 +0000
> Commit:     Cy Schubert <cy@FreeBSD.org>
> CommitDate: 2021-11-04 18:30:25 +0000
>
>     wpa: Fix WITHOUT_CRYPT build
>
>     PASN requires CRYPT and when built WITHOUT_CRYPT buildworld
>     fails. Only enable PASN when MK_CRYPT is enabled (default).
>
>     PR:             259517

Do we need to guard the build of pasn_supplicant.c by MK_CRYPT as well?

My WITHOUT_CRYPT Cirrus-CI build failed with:

--- pasn_supplicant.o ---
/tmp/cirrus-ci-build/contrib/wpa//wpa_supplicant/pasn_supplicant.c:588:35:
error: no member named 'pasn' in 'struct wpa_supplicant'
struct wpas_pasn *pasn = &wpa_s->pasn;
~~~~~ ^