strongswan.org
Wiki/Project Management
Downloads
Gitweb
projects
/
strongswan.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89d350f
)
charon-cmd: match_me/match_other are optional in callback credentials
author
Tobias Brunner
<tobias@strongswan.org>
Fri, 12 Apr 2013 17:32:01 +0000
(19:32 +0200)
committer
Tobias Brunner
<tobias@strongswan.org>
Wed, 8 May 2013 13:02:40 +0000
(15:02 +0200)
src/charon-cmd/cmd/cmd_creds.c
patch
|
blob
|
history
diff --git
a/src/charon-cmd/cmd/cmd_creds.c
b/src/charon-cmd/cmd/cmd_creds.c
index
9a37edf
..
4626c6d
100644
(file)
--- 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)));
}