diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-04-12 19:32:01 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-05-08 15:02:40 +0200 |
commit | f77d6e16d2f50645ab7099eb1ac72b2059da994f (patch) | |
tree | bf139b1ff2df2f811c8ee8f37c0d381a55dcbba7 | |
parent | 89d350f46a539c7dba1b4cb3337685b75032fec9 (diff) | |
download | strongswan-f77d6e16d2f50645ab7099eb1ac72b2059da994f.tar.bz2 strongswan-f77d6e16d2f50645ab7099eb1ac72b2059da994f.tar.xz |
charon-cmd: match_me/match_other are optional in callback credentials
-rw-r--r-- | src/charon-cmd/cmd/cmd_creds.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/charon-cmd/cmd/cmd_creds.c b/src/charon-cmd/cmd/cmd_creds.c index 9a37edff5..4626c6dbe 100644 --- a/src/charon-cmd/cmd/cmd_creds.c +++ b/src/charon-cmd/cmd/cmd_creds.c @@ -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))); } |