aboutsummaryrefslogtreecommitdiffstats
path: root/src/pt-tls-client/pt-tls-client.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2015-03-21 12:30:24 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2015-03-23 22:25:43 +0100
commitc6aed8aa21e639ea54eb0605bc2639815757ea82 (patch)
tree42ef4bec40dde0aba7bfeba14f4a61aa0ba953f3 /src/pt-tls-client/pt-tls-client.c
parent80322d2cee75bfe804e9c427ada07898c9a8ef9f (diff)
downloadstrongswan-c6aed8aa21e639ea54eb0605bc2639815757ea82.tar.bz2
strongswan-c6aed8aa21e639ea54eb0605bc2639815757ea82.tar.xz
Optionally announce PB-TNC mutual protocol capability
Diffstat (limited to 'src/pt-tls-client/pt-tls-client.c')
-rw-r--r--src/pt-tls-client/pt-tls-client.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pt-tls-client/pt-tls-client.c b/src/pt-tls-client/pt-tls-client.c
index bf26e3ab3..3a179af17 100644
--- a/src/pt-tls-client/pt-tls-client.c
+++ b/src/pt-tls-client/pt-tls-client.c
@@ -270,6 +270,7 @@ int main(int argc, char *argv[])
{"port", required_argument, NULL, 'p' },
{"cert", required_argument, NULL, 'x' },
{"key", required_argument, NULL, 'k' },
+ {"mutual", no_argument, NULL, 'm' },
{"quiet", no_argument, NULL, 'q' },
{"debug", required_argument, NULL, 'd' },
{"optionsfrom", required_argument, NULL, '+' },
@@ -311,6 +312,10 @@ int main(int argc, char *argv[])
case 'p': /* --port <port> */
port = atoi(optarg);
continue;
+ case 'm': /* --mutual */
+ lib->settings->set_bool(lib->settings,
+ "%s.plugins.tnccs-20.mutual", TRUE, lib->ns);
+ continue;
case 'q': /* --quiet */
log_to_stderr = FALSE;
continue;