ERP: Do not generate ERP keys when domain name is not specified

This commit adds changes to not generate ERP information if the domain
name is not specified in the EAP identity. keyName-NAI needs the realm
part and as such, it is reasonable to require the main EAP configuration
to provide that realm.

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Vidyullatha Kanchanapally 2017-05-17 18:07:11 +05:30 committed by Jouni Malinen
parent 0a0c4dc1d7
commit 4aa329298d

View file

@ -412,7 +412,7 @@ static char * eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config)
} }
} }
return os_strdup(""); return NULL;
} }