New upstream release that includes patches by Klemens Nanni that fix an endless loop on platforms where char is unsigned, e.g. macppc.
Index: Makefile =================================================================== RCS file: /cvs/ports/net/wiresep/Makefile,v retrieving revision 1.6 diff -u -p -r1.6 Makefile --- Makefile 20 Apr 2020 20:45:12 -0000 1.6 +++ Makefile 23 Apr 2020 22:14:53 -0000 @@ -2,8 +2,7 @@ COMMENT = privilege separated implementation of WireGuard -DISTNAME = wiresep-0.11.1 -REVISION = 0 +DISTNAME = wiresep-0.11.2 MASTER_SITES = https://netsend.nl/wiresep/archive/ CATEGORIES = net security Index: distinfo =================================================================== RCS file: /cvs/ports/net/wiresep/distinfo,v retrieving revision 1.4 diff -u -p -r1.4 distinfo --- distinfo 7 Apr 2020 17:45:32 -0000 1.4 +++ distinfo 23 Apr 2020 22:14:53 -0000 @@ -1,2 +1,2 @@ -SHA256 (wiresep-0.11.1.tar.gz) = CpaX21JT7q5RAteZCy2VDJNtZ/35NzZpBHFqxNCIxEI= -SIZE (wiresep-0.11.1.tar.gz) = 396242 +SHA256 (wiresep-0.11.2.tar.gz) = 7ajqpCYcrVeH1dZruknNol6WBOGxgSObRqfq1/mSgic= +SIZE (wiresep-0.11.2.tar.gz) = 396400 Index: patches/patch-master_c =================================================================== RCS file: patches/patch-master_c diff -N patches/patch-master_c --- patches/patch-master_c 20 Apr 2020 20:45:12 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,18 +0,0 @@ -$OpenBSD: patch-master_c,v 1.1 2020/04/20 20:45:12 kn Exp $ - -getopt(3) returns int not char; fix endless loop on platforms where char -is unsigned, e.g. macppc. - -Index: master.c ---- master.c.orig -+++ master.c -@@ -133,7 +133,8 @@ main(int argc, char **argv) - int configtest, foreground, stdopen, masterport, stat; - pid_t pid; - const char *errstr; -- char c, *eargs[4], *eenv[1], *logfacilitystr, *oldprogname; -+ char *eargs[4], *eenv[1], *logfacilitystr, *oldprogname; -+ int c; - - /* should endup in a configure script */ - if (sizeof(struct msgwginit) != 148) Index: patches/patch-wiresep-keygen_c =================================================================== RCS file: patches/patch-wiresep-keygen_c diff -N patches/patch-wiresep-keygen_c --- patches/patch-wiresep-keygen_c 20 Apr 2020 20:45:12 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,17 +0,0 @@ -$OpenBSD: patch-wiresep-keygen_c,v 1.1 2020/04/20 20:45:12 kn Exp $ - -getopt(3) returns int not char; fix endless loop on platforms where char -is unsigned, e.g. macppc. - -Index: wiresep-keygen.c ---- wiresep-keygen.c.orig -+++ wiresep-keygen.c -@@ -121,7 +121,7 @@ main(int argc, char **argv) - uint8_t privkey[X25519_KEY_LENGTH], pubkey[X25519_KEY_LENGTH]; - char b64privkey[46], b64pubkey[46]; - int i, fd, wd, ret; -- char c; -+ int c; - char *keypath, *presharedkey, *filename; - - presharedkey = NULL;