-.\" $OpenBSD: iked.8,v 1.28 2020/11/20 13:03:00 jmc Exp $
+.\" $OpenBSD: iked.8,v 1.29 2021/11/29 12:27:18 tobhe Exp $
.\"
.\" Copyright (c) 2010 - 2014 Reyk Floeter <reyk@openbsd.org>
.\"
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
.\"
-.Dd $Mdocdate: November 20 2020 $
+.Dd $Mdocdate: November 29 2021 $
.Dt IKED 8
.Os
.Sh NAME
.Nd Internet Key Exchange version 2 (IKEv2) daemon
.Sh SYNOPSIS
.Nm iked
-.Op Fl dnSTtv
+.Op Fl dnSTtvV
.Op Fl D Ar macro Ns = Ns Ar value
.Op Fl f Ar file
.Op Fl p Ar udpencap_port
negotiate NAT-Traversal with the peers.
.It Fl v
Produce more verbose output.
+.It Fl V
+Show the version and exit.
.El
.Sh PUBLIC KEY AUTHENTICATION
It is possible to store trusted public keys to make them directly
-/* $OpenBSD: iked.c,v 1.59 2021/11/25 18:28:51 tobhe Exp $ */
+/* $OpenBSD: iked.c,v 1.60 2021/11/29 12:27:18 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
#include "iked.h"
#include "ikev2.h"
+#include "version.h"
__dead void usage(void);
log_init(1, LOG_DAEMON);
- while ((c = getopt(argc, argv, "6D:df:np:Ss:Ttv")) != -1) {
+ while ((c = getopt(argc, argv, "6D:df:np:Ss:TtvV")) != -1) {
switch (c) {
case '6':
log_warnx("the -6 option is ignored and will be "
verbose++;
opts |= IKED_OPT_VERBOSE;
break;
+ case 'V':
+ fprintf(stderr, "OpenIKED %s\n", IKED_VERSION);
+ return 0;
default:
usage();
}