PASN: Add a function to configure noauth variable
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>
This commit is contained in:
parent
8f21cdf9d7
commit
d9bb64914a
2 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue