]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
PASN: Add a function to configure noauth variable
authorShivam Rai <quic_shivamr@quicinc.com>
Mon, 5 Aug 2024 04:50:10 +0000 (10:20 +0530)
committerJouni Malinen <j@w1.fi>
Thu, 22 Aug 2024 08:36:02 +0000 (11:36 +0300)
When the PASN implementation is used as a library for Wi-Fi Aware
applications there is need to allow the Responder to set the noauth
parameter to support opportunistic pairing method using PASN AKMP. Add
pasn_set_noauth() to address this.

Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
src/pasn/pasn_common.c
src/pasn/pasn_common.h

index e2c668136300659d860dad107ef6aa3d1d082bd8..331a65b7068145e13926861ea38efc5d2c70e59f 100644 (file)
@@ -192,6 +192,14 @@ int pasn_set_extra_ies(struct pasn_data *pasn, const u8 *extra_ies,
 }
 
 
+void pasn_set_noauth(struct pasn_data *pasn, bool noauth)
+{
+       if (!pasn)
+               return;
+       pasn->noauth = noauth;
+}
+
+
 int pasn_get_akmp(struct pasn_data *pasn)
 {
        if (!pasn)
index bb54175b2eee6a17e51a8c758b203ec256ff284d..54792f43e7d256383d58ad1c8caf0e371c0e351f 100644 (file)
@@ -208,6 +208,7 @@ void pasn_set_responder_pmksa(struct pasn_data *pasn,
 int pasn_set_pt(struct pasn_data *pasn, struct sae_pt *pt);
 
 /* Responder */
+void pasn_set_noauth(struct pasn_data *pasn, bool noauth);
 void pasn_set_password(struct pasn_data *pasn, const char *password);
 void pasn_set_wpa_key_mgmt(struct pasn_data *pasn, int key_mgmt);
 void pasn_set_rsn_pairwise(struct pasn_data *pasn, int rsn_pairwise);