~graywolf/acme-client-portable

d43c6d312836f1b6630b1b79033876434299e8ff — Wolf 6 days ago e9103fb openbsd
Update from openbsd (2021-07-25 16:17:33 UTC)
5 files changed, 26 insertions(+), 31 deletions(-)

M CVS/Entries
M chngproc.c
M fileproc.c
M http.c
M netproc.c
M CVS/Entries => CVS/Entries +19 -19
@@ 3,24 3,24 @@
/jsmn.h/1.1/Mon Jul  8 18:00:44 2019//
/key.h/1.1/Mon Jul  8 18:00:44 2019//
/acme-client.conf.5/1.29/Tue Jan 26 15:22:18 2021//
/Makefile/1.9/Sat Jul 10 23:52:39 2021//
/acctproc.c/1.21/Sat Jul 10 23:52:42 2021//
/acme-client.1/1.40/Sun Feb 28 14:16:37 2021//
/base64.c/1.9/Sat Jul 10 23:52:39 2021//
/certproc.c/1.13/Sat Jul 10 23:52:39 2021//
/chngproc.c/1.15/Sat Jul 10 23:52:39 2021//
/dbg.c/1.4/Sat Jul 10 23:52:39 2021//
/dnsproc.c/1.11/Sat Jul 10 23:52:39 2021//
/extern.h/1.20/Sat Jul 10 23:52:39 2021//
/fileproc.c/1.17/Sat Jul 10 23:52:39 2021//
/http.c/1.29/Sat Jul 10 23:52:39 2021//
/json.c/1.21/Sat Jul 10 23:52:39 2021//
/key.c/1.2/Sat Jul 10 23:52:39 2021//
/keyproc.c/1.15/Sat Jul 10 23:52:39 2021//
/main.c/1.54/Sat Jul 10 23:52:39 2021//
/netproc.c/1.29/Sat Jul 10 23:52:39 2021//
/parse.h/1.15/Sat Jul 10 23:52:39 2021//
/parse.y/1.42/Sat Jul 10 23:52:39 2021//
/revokeproc.c/1.17/Sat Jul 10 23:52:39 2021//
/util.c/1.12/Sat Jul 10 23:52:39 2021//
/Makefile/1.9/Sun Jul 25 16:17:30 2021//
/acctproc.c/1.21/Sun Jul 25 16:17:30 2021//
/base64.c/1.9/Sun Jul 25 16:17:30 2021//
/certproc.c/1.13/Sun Jul 25 16:17:30 2021//
/chngproc.c/1.16/Sun Jul 25 16:17:32 2021//
/dbg.c/1.4/Sun Jul 25 16:17:30 2021//
/dnsproc.c/1.11/Sun Jul 25 16:17:30 2021//
/extern.h/1.20/Sun Jul 25 16:17:30 2021//
/fileproc.c/1.18/Sun Jul 25 16:17:32 2021//
/http.c/1.30/Sun Jul 25 16:17:32 2021//
/json.c/1.21/Sun Jul 25 16:17:30 2021//
/key.c/1.2/Sun Jul 25 16:17:30 2021//
/keyproc.c/1.15/Sun Jul 25 16:17:30 2021//
/main.c/1.54/Sun Jul 25 16:17:30 2021//
/netproc.c/1.30/Sun Jul 25 16:17:32 2021//
/parse.h/1.15/Sun Jul 25 16:17:30 2021//
/parse.y/1.42/Sun Jul 25 16:17:30 2021//
/revokeproc.c/1.17/Sun Jul 25 16:17:30 2021//
/util.c/1.12/Sun Jul 25 16:17:30 2021//
D

M chngproc.c => chngproc.c +2 -2
@@ 1,4 1,4 @@
/*	$Id: chngproc.c,v 1.15 2019/08/12 18:01:44 benno Exp $ */
/*	$Id: chngproc.c,v 1.16 2021/07/12 15:09:20 beck Exp $ */
/*
 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
 *


@@ 38,7 38,7 @@ chngproc(int netsock, const char *root)


	if (unveil(root, "wc") == -1) {
		warn("unveil");
		warn("unveil %s", root);
		goto out;
	}


M fileproc.c => fileproc.c +2 -2
@@ 1,4 1,4 @@
/*	$Id: fileproc.c,v 1.17 2021/01/03 16:32:38 florian Exp $ */
/*	$Id: fileproc.c,v 1.18 2021/07/12 15:09:20 beck Exp $ */
/*
 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
 *


@@ 100,7 100,7 @@ fileproc(int certsock, const char *certdir, const char *certfile, const char
	enum fileop	 op;

	if (unveil(certdir, "rwc") == -1) {
		warn("unveil");
		warn("unveil %s", certdir);
		goto out;
	}


M http.c => http.c +1 -6
@@ 1,4 1,4 @@
/*	$Id: http.c,v 1.29 2020/01/20 22:10:27 sthen Exp $ */
/*	$Id: http.c,v 1.30 2021/07/14 13:33:57 kn Exp $ */
/*
 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
 *


@@ 124,11 124,6 @@ http_init()
	if (tlscfg != NULL)
		return 0;

	if (tls_init() == -1) {
		warn("tls_init");
		goto err;
	}

	tlscfg = tls_config_new();
	if (tlscfg == NULL) {
		warn("tls_config_new");

M netproc.c => netproc.c +2 -2
@@ 1,4 1,4 @@
/*	$Id: netproc.c,v 1.29 2020/12/24 08:17:49 florian Exp $ */
/*	$Id: netproc.c,v 1.30 2021/07/12 15:09:20 beck Exp $ */
/*
 * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv>
 *


@@ 688,7 688,7 @@ netproc(int kfd, int afd, int Cfd, int cfd, int dfd, int rfd,
	memset(&c, 0, sizeof(struct conn));

	if (unveil(tls_default_ca_cert_file(), "r") == -1) {
		warn("unveil");
		warn("unveil %s", tls_default_ca_cert_file());
		goto out;
	}