/* command interface to Pluto * Copyright (C) 1997 Angelos D. Keromytis. * Copyright (C) 1998-2003 D. Hugh Redelmeier. * Copyright (C) 2004-2008 Michael Richardson * Copyright (C) 2007-2008 Paul Wouters * Copyright (C) 2008 Shingo Yamawaki * Copyright (C) 2008-2009 David McCullough * Copyright (C) 2010 D. Hugh Redelmeier * Copyright (C) 2011 Mika Ilmaranta * Copyright (C) 2012-2013 Paul Wouters * Copyright (C) 2012 Philippe Vouters * Copyright (C) 2013 David McCullough * Copyright (C) 2013 Matt Rogers * Copyright (C) 2013 Antony Antony * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation; either version 2 of the License, or (at your * option) any later version. See . * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "sysdep.h" #include "socketwrapper.h" #include "constants.h" #include "lswlog.h" #include "defs.h" #include "whack.h" /** * Print the 'ipsec --whack help' message */ static void help(void) { fprintf(stderr, "Usage:\n\n" "all forms:" " [--ctlbase ]" " [--label ]" "\n\n" "help: whack" " [--help]" " [--version]" "\n\n" "connection: whack" " --name " " \\\n " " --connalias " " \\\n " " [--ipv4 | --ipv6]" " [--tunnelipv4 | --tunnelipv6]" " \\\n " " (--host | --id | --cert )" " \\\n " " [--ca ]" " \\\n " " [--nexthop ]" " [--client | --clientwithin
]" " \\\n " " [--ikeport ]" " [--srcip ]" " \\\n " " [--clientprotoport /]" " [--dnskeyondemand]" " \\\n " " [--updown ]" " \\\n " " (--host | --id )" " \\\n " " [--groups ]" " [--cert ]" " [--ca ]" " [--sendcert]" " [--sendcerttype number]" " \\\n " " [--nexthop ]" " \\\n " " [--client | --clientwithin
]" " \\\n " " [--clientprotoport /]" " \\\n " " [--dnskeyondemand]" " [--updown ]" " \\\n " " [--psk]" " [--rsasig]" " \\\n " " [--encrypt]" " [--authenticate]" " [--compress]" " [--overlapip]" " [--tunnel]" " [--pfs]" " \\\n " " [--pfsgroup [modp1024] | [modp1536] | [modp2048] | [modp3072] | [modp4096] | [modp6144] | [modp8192]]" " \\\n " " [dh22] | [dh23] | [dh24]" " \\\n " " [--ikelifetime ]" " [--ipseclifetime ]" " \\\n " " [--reykeymargin ]" " [--reykeyfuzz ]" " \\\n " " [--keyingtries ]" " \\\n " " [--esp ]" " \\\n " " [--remote-peer-type ]" " \\\n " " [--mtu ]" " \\\n " " [--priority ] [--reqid ]" " \\\n " " [--ikev1-disable]" " [--ikev2-allow]" " [--ikev2-propose]" " \\\n " " [--allow-narrowing]" " [--sareftrack]" " [--sarefconntrack]" " \\\n " " [--ikefrag-allow]" " [--ikefrag-force]" " [--no-ikepad]" " \\\n " #ifdef HAVE_NM "[--nm-configured]" " \\\n " #endif #ifdef HAVE_LABELED_IPSEC "[--loopback] [--labeledipsec] [--policylabel