aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/interworking.c
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2013-08-02 15:42:54 (GMT)
committerJouni Malinen <j@w1.fi>2013-10-18 11:13:45 (GMT)
commit463c8ffbd5bf15dc5158d68fc32347cfb5746a83 (patch)
tree5991b36aa302d447a8e4e0ba29779771f25a5574 /wpa_supplicant/interworking.c
parent0076a18f391195878531f148a1692f2142838943 (diff)
downloadhostap-463c8ffbd5bf15dc5158d68fc32347cfb5746a83.zip
hostap-463c8ffbd5bf15dc5158d68fc32347cfb5746a83.tar.gz
hostap-463c8ffbd5bf15dc5158d68fc32347cfb5746a83.tar.bz2
Interworking: Add support for multiple home FQDNs
Credentials can now be configured with more than one FQDN ('domain' field in the cred block) to perform Domain Name List matching against multiple home domains. Signed-hostap: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'wpa_supplicant/interworking.c')
-rw-r--r--wpa_supplicant/interworking.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/wpa_supplicant/interworking.c b/wpa_supplicant/interworking.c
index 36f75a1..01acae1 100644
--- a/wpa_supplicant/interworking.c
+++ b/wpa_supplicant/interworking.c
@@ -1514,6 +1514,7 @@ int interworking_home_sp_cred(struct wpa_supplicant *wpa_s,
struct wpa_cred *cred,
struct wpabuf *domain_names)
{
+ size_t i;
#ifdef INTERWORKING_3GPP
char nai[100], *realm;
@@ -1544,10 +1545,12 @@ int interworking_home_sp_cred(struct wpa_supplicant *wpa_s,
if (domain_names == NULL || cred->domain == NULL)
return 0;
- wpa_printf(MSG_DEBUG, "Interworking: Search for match with "
- "home SP FQDN %s", cred->domain);
- if (domain_name_list_contains(domain_names, cred->domain))
- return 1;
+ for (i = 0; i < cred->num_domain; i++) {
+ wpa_printf(MSG_DEBUG, "Interworking: Search for match with "
+ "home SP FQDN %s", cred->domain[i]);
+ if (domain_name_list_contains(domain_names, cred->domain[i]))
+ return 1;
+ }
return 0;
}