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;
|
||||
}
|
||||
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)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue