Skip to content

Commit 57c6d03

Browse files
committed
Regen patches.
1 parent 0cd411e commit 57c6d03

4 files changed

+31
-31
lines changed

patches/0001-Allow-overriding-default-user-and-file-locations.patch

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From a4bfbec5d33090c094fafdd249f248a628ca8899 Mon Sep 17 00:00:00 2001
1+
From cc682646acf080fac61788e1193efdb1775d3b2a Mon Sep 17 00:00:00 2001
22
From: Claudio Jeker <claudio@openbsd.org>
33
Date: Tue, 14 Apr 2020 22:43:56 +0200
44
Subject: [PATCH 1/4] Allow overriding default user and file locations
@@ -10,10 +10,10 @@ Adjust version string for -portable
1010
2 files changed, 26 insertions(+), 8 deletions(-)
1111

1212
diff --git src/usr.sbin/rpki-client/extern.h src/usr.sbin/rpki-client/extern.h
13-
index 514dfea85..0bf10bfc7 100644
13+
index d1d6baae6..7d47f9f49 100644
1414
--- src/usr.sbin/rpki-client/extern.h
1515
+++ src/usr.sbin/rpki-client/extern.h
16-
@@ -1028,10 +1028,27 @@ time_t get_current_time(void);
16+
@@ -1024,10 +1024,27 @@ time_t get_current_time(void);
1717
int mkpath(const char *);
1818
int mkpathat(int, const char *);
1919

@@ -43,10 +43,10 @@ index 514dfea85..0bf10bfc7 100644
4343
/* Interval in which random reinitialization to an RRDP snapshot happens. */
4444
#define RRDP_RANDOM_REINIT_MAX 12 /* weeks */
4545
diff --git src/usr.sbin/rpki-client/main.c src/usr.sbin/rpki-client/main.c
46-
index 315ed1915..90bae8eca 100644
46+
index ff88a70c4..7473bb93a 100644
4747
--- src/usr.sbin/rpki-client/main.c
4848
+++ src/usr.sbin/rpki-client/main.c
49-
@@ -830,7 +830,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
49+
@@ -842,7 +842,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
5050
}
5151

5252
/*
@@ -55,7 +55,7 @@ index 315ed1915..90bae8eca 100644
5555
* returning the number of files found and filled-in.
5656
* This may be zero.
5757
* Don't exceed "max" filenames.
58-
@@ -838,7 +838,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
58+
@@ -850,7 +850,7 @@ sum_repostats(const struct repo *rp, const struct repostats *in, void *arg)
5959
static int
6060
tal_load_default(void)
6161
{
@@ -64,7 +64,7 @@ index 315ed1915..90bae8eca 100644
6464
int s = 0;
6565
char *path;
6666
DIR *dirp;
67-
@@ -1007,7 +1007,7 @@ main(int argc, char *argv[])
67+
@@ -1019,7 +1019,7 @@ main(int argc, char *argv[])
6868
struct pollfd pfd[NPFD];
6969
struct msgbuf *queues[NPFD];
7070
struct ibuf *b;
@@ -73,7 +73,7 @@ index 315ed1915..90bae8eca 100644
7373
char *bind_addr = NULL;
7474
const char *cachedir = NULL, *outputdir = NULL;
7575
const char *errs, *name;
76-
@@ -1030,9 +1030,9 @@ main(int argc, char *argv[])
76+
@@ -1043,9 +1043,9 @@ main(int argc, char *argv[])
7777
if (getuid() == 0) {
7878
struct passwd *pw;
7979

@@ -85,7 +85,7 @@ index 315ed1915..90bae8eca 100644
8585
if (setgroups(1, &pw->pw_gid) == -1 ||
8686
setresgid(pw->pw_gid, pw->pw_gid, pw->pw_gid) == -1 ||
8787
setresuid(pw->pw_uid, pw->pw_uid, pw->pw_uid) == -1)
88-
@@ -1126,7 +1126,8 @@ main(int argc, char *argv[])
88+
@@ -1139,7 +1139,8 @@ main(int argc, char *argv[])
8989
verbose++;
9090
break;
9191
case 'V':
@@ -95,7 +95,7 @@ index 315ed1915..90bae8eca 100644
9595
return 0;
9696
case 'x':
9797
experimental = 1;
98-
@@ -1176,7 +1177,7 @@ main(int argc, char *argv[])
98+
@@ -1191,7 +1192,7 @@ main(int argc, char *argv[])
9999
if (talsz == 0)
100100
talsz = tal_load_default();
101101
if (talsz == 0)
@@ -105,5 +105,5 @@ index 315ed1915..90bae8eca 100644
105105
/* Load optional constraint files sitting next to the TALs. */
106106
constraints_load();
107107
--
108-
2.50.1
108+
2.52.0
109109

patches/0002-Apply-placeholders-for-portability-shim.patch

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4c6bae3f37fd0589ceb794bdad042d112ce25655 Mon Sep 17 00:00:00 2001
1+
From af56a8a9a494b13e624b647aa1a62ff133a88e80 Mon Sep 17 00:00:00 2001
22
From: Claudio Jeker <claudio@openbsd.org>
33
Date: Mon, 20 Apr 2020 12:16:46 +0200
44
Subject: [PATCH 2/4] Apply placeholders for portability shim
@@ -9,7 +9,7 @@ From Robert Scheck
99
1 file changed, 14 insertions(+), 14 deletions(-)
1010

1111
diff --git src/usr.sbin/rpki-client/rpki-client.8 src/usr.sbin/rpki-client/rpki-client.8
12-
index c6fde7865..65435362b 100644
12+
index 8cd9681d7..7cda9afc1 100644
1313
--- src/usr.sbin/rpki-client/rpki-client.8
1414
+++ src/usr.sbin/rpki-client/rpki-client.8
1515
@@ -46,7 +46,7 @@ The
@@ -36,7 +36,7 @@ index c6fde7865..65435362b 100644
3636
to fetch repositories.
3737
It must accept the
3838
.Fl rt
39-
@@ -199,7 +199,7 @@ The skip filter is enforced during processing of the
39+
@@ -200,7 +200,7 @@ The skip filter is enforced during processing of the
4040
.Em Subject Information Access Pq SIA
4141
extension in CA certificates, thus applies to both RSYNC and RRDP connections.
4242
By default load entries from
@@ -45,7 +45,7 @@ index c6fde7865..65435362b 100644
4545
.It Fl s Ar timeout
4646
Terminate after
4747
.Ar timeout
48-
@@ -219,7 +219,7 @@ This option can be used multiple times to load multiple TALs.
48+
@@ -220,7 +220,7 @@ This option can be used multiple times to load multiple TALs.
4949
By default
5050
.Nm
5151
will load all TAL files in
@@ -54,7 +54,7 @@ index c6fde7865..65435362b 100644
5454
TAL are small files containing a public key and URL endpoint address.
5555
.It Fl V
5656
Show the version and exit.
57-
@@ -240,7 +240,7 @@ The directory where
57+
@@ -241,7 +241,7 @@ The directory where
5858
.Nm
5959
will write the output files.
6060
Defaults to
@@ -63,7 +63,7 @@ index c6fde7865..65435362b 100644
6363
.El
6464
.Pp
6565
By default
66-
@@ -302,32 +302,32 @@ utilizes the following environment variables:
66+
@@ -304,32 +304,32 @@ utilizes the following environment variables:
6767
URL of HTTP proxy to use.
6868
.El
6969
.Sh FILES
@@ -105,5 +105,5 @@ index c6fde7865..65435362b 100644
105105
.Sh STANDARDS
106106
.Rs
107107
--
108-
2.50.1
108+
2.52.0
109109

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 0a2059119aa656cedc398b812fbce5e1369e3b59 Mon Sep 17 00:00:00 2001
1+
From 91a42c7d4f55b005ef5f0a061865276d0023cfb5 Mon Sep 17 00:00:00 2001
22
From: Claudio Jeker <claudio@openbsd.org>
33
Date: Fri, 6 Nov 2020 13:19:45 +0100
44
Subject: [PATCH 3/4] Emit all output formats on non-OpenBSD systems
@@ -9,10 +9,10 @@ Subject: [PATCH 3/4] Emit all output formats on non-OpenBSD systems
99
2 files changed, 4 insertions(+), 3 deletions(-)
1010

1111
diff --git src/usr.sbin/rpki-client/main.c src/usr.sbin/rpki-client/main.c
12-
index 90bae8eca..cfa06d05b 100644
12+
index 7473bb93a..c56d4efb9 100644
1313
--- src/usr.sbin/rpki-client/main.c
1414
+++ src/usr.sbin/rpki-client/main.c
15-
@@ -1168,7 +1168,8 @@ main(int argc, char *argv[])
15+
@@ -1181,7 +1181,8 @@ main(int argc, char *argv[])
1616
if ((outdirfd = open(outputdir, O_RDONLY | O_DIRECTORY)) == -1)
1717
err(1, "output directory %s", outputdir);
1818
if (outformats == 0)
@@ -23,20 +23,20 @@ index 90bae8eca..cfa06d05b 100644
2323
}
2424

2525
diff --git src/usr.sbin/rpki-client/rpki-client.8 src/usr.sbin/rpki-client/rpki-client.8
26-
index 65435362b..b97947d1f 100644
26+
index 7cda9afc1..70d752642 100644
2727
--- src/usr.sbin/rpki-client/rpki-client.8
2828
+++ src/usr.sbin/rpki-client/rpki-client.8
29-
@@ -246,8 +246,8 @@ Defaults to
29+
@@ -247,8 +247,8 @@ Defaults to
3030
By default
3131
.Nm
3232
outputs validated payloads in
3333
-.Fl o
34-
-(OpenBGPD compatible) format.
34+
-(OpenBGPD compatible) format
3535
+.Fl joBcm
36-
+(JSON, OpenBGPD, BIRD, CSV and OpenMetric) formats.
36+
+(JSON, OpenBGPD, BIRD, CSV and OpenMetric) formats
37+
and in canonical cache representation format.
3738
.Pp
3839
.Nm
39-
should be run hourly by
4040
--
41-
2.50.1
41+
2.52.0
4242

patches/0004-Only-call-tls_config_set_ca_mem-when-pledge-is-used.patch

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
From 4d6dca3d8f0dc8c6c0ddd9d6b5c1db5dd2166bfe Mon Sep 17 00:00:00 2001
1+
From e47436990831d6e5c7a024864731dc7c036fa269 Mon Sep 17 00:00:00 2001
22
From: Claudio Jeker <claudio@openbsd.org>
33
Date: Wed, 1 Sep 2021 16:23:36 +0200
44
Subject: [PATCH 4/4] Only call tls_config_set_ca_mem() when pledge() is used.
@@ -11,7 +11,7 @@ This is one giant hole but landlock is not capable to do proper protection.
1111
1 file changed, 16 insertions(+)
1212

1313
diff --git src/usr.sbin/rpki-client/http.c src/usr.sbin/rpki-client/http.c
14-
index b7e8fcdf9..6dc366cb5 100644
14+
index 1d75f1758..ecee291bc 100644
1515
--- src/usr.sbin/rpki-client/http.c
1616
+++ src/usr.sbin/rpki-client/http.c
1717
@@ -64,6 +64,9 @@
@@ -35,7 +35,7 @@ index b7e8fcdf9..6dc366cb5 100644
3535

3636
/* HTTP request API */
3737
static void http_req_new(unsigned int, char *, char *, int, int);
38-
@@ -2036,12 +2041,23 @@ http_setup(void)
38+
@@ -2048,12 +2053,23 @@ http_setup(void)
3939
tls_config_error(tls_config));
4040
#endif
4141

@@ -60,5 +60,5 @@ index b7e8fcdf9..6dc366cb5 100644
6060
if ((httpproxy = getenv("http_proxy")) != NULL && *httpproxy == '\0')
6161
httpproxy = NULL;
6262
--
63-
2.50.1
63+
2.52.0
6464

0 commit comments

Comments
 (0)