summaryrefslogtreecommitdiff
path: root/usr.sbin/rpki-client
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2019-11-06 08:29:04 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2019-11-06 08:29:04 +0000
commitee01443fe902c40e1c7e99ae79c6b0a83b80f1ba (patch)
tree2ff8111e5ee2470420ac317ba6211b29da6ddadb /usr.sbin/rpki-client
parent13ea451fa5ed5f4d20d07286f94bacc0aa4b7d92 (diff)
For now ignore https:// URI in tal files. rpki-client only does rsync.
Problem reported by Alexandre Hamada
Diffstat (limited to 'usr.sbin/rpki-client')
-rw-r--r--usr.sbin/rpki-client/tal.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/rpki-client/tal.c b/usr.sbin/rpki-client/tal.c
index da78bb70c1e..921a11b09dc 100644
--- a/usr.sbin/rpki-client/tal.c
+++ b/usr.sbin/rpki-client/tal.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tal.c,v 1.12 2019/11/06 08:18:11 claudio Exp $ */
+/* $OpenBSD: tal.c,v 1.13 2019/11/06 08:29:03 claudio Exp $ */
/*
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -61,6 +61,12 @@ tal_parse_buffer(const char *fn, char *buf)
if (*line == '\0')
break;
+ /* ignore https URI for now. */
+ if (strncasecmp(line, "https://", 8) == 0) {
+ warnx("%s: https schema ignored", line);
+ continue;
+ }
+
/* Append to list of URIs. */
tal->uri = reallocarray(tal->uri,
tal->urisz + 1, sizeof(char *));