mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
charon-cmd: match_me/match_other are optional in callback credentials
This commit is contained in:
parent
89d350f46a
commit
f77d6e16d2
@ -96,7 +96,14 @@ static shared_key_t* callback_shared(private_cmd_creds_t *this,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
this->prompted = TRUE;
|
this->prompted = TRUE;
|
||||||
*match_me = *match_other = ID_MATCH_PERFECT;
|
if (match_me)
|
||||||
|
{
|
||||||
|
*match_me = ID_MATCH_PERFECT;
|
||||||
|
}
|
||||||
|
if (match_other)
|
||||||
|
{
|
||||||
|
*match_other = ID_MATCH_PERFECT;
|
||||||
|
}
|
||||||
return shared_key_create(type, chunk_clone(chunk_from_str(pwd)));
|
return shared_key_create(type, chunk_clone(chunk_from_str(pwd)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user