Pass NULL as other identity in EAP-AKA 3GPP2 to find a match with all plugins
This commit is contained in:
@@ -51,12 +51,9 @@ bool eap_aka_3gpp2_get_k(identification_t *id, char k[AKA_K_LEN])
|
|||||||
{
|
{
|
||||||
shared_key_t *shared;
|
shared_key_t *shared;
|
||||||
chunk_t key;
|
chunk_t key;
|
||||||
identification_t *any;
|
|
||||||
|
|
||||||
any = identification_create_from_encoding(ID_ANY, chunk_empty);
|
|
||||||
shared = charon->credentials->get_shared(charon->credentials,
|
shared = charon->credentials->get_shared(charon->credentials,
|
||||||
SHARED_EAP, id, any);
|
SHARED_EAP, id, NULL);
|
||||||
any->destroy(any);
|
|
||||||
if (shared == NULL)
|
if (shared == NULL)
|
||||||
{
|
{
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user