diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-10-31 08:36:44 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2019-10-31 08:36:44 +0000 |
commit | 2ed2441ab6eb3d02d93cdfd09e4477c63d848667 (patch) | |
tree | 7f7623533a132938b800bce149b582f9029cb5e5 /usr.sbin/rpki-client/rsync.c | |
parent | f9fc4fa2989a2d42827723c29dca5494e53e4ce6 (diff) |
Handle the TAL files in the master process and pass them as buffer to the
parser process. This way the parser never needs to read outside of the
cache directory which makes the unveil simpler. Additionally rsync_uri_parse
no longer needs to know about .tal files so there is now no chance to sneak
in a .tal file later on.
OK deraadt@
Diffstat (limited to 'usr.sbin/rpki-client/rsync.c')
-rw-r--r-- | usr.sbin/rpki-client/rsync.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr.sbin/rpki-client/rsync.c b/usr.sbin/rpki-client/rsync.c index a503390577d..0e54680a8ff 100644 --- a/usr.sbin/rpki-client/rsync.c +++ b/usr.sbin/rpki-client/rsync.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rsync.c,v 1.6 2019/06/19 16:30:37 deraadt Exp $ */ +/* $OpenBSD: rsync.c,v 1.7 2019/10/31 08:36:43 claudio Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -129,8 +129,6 @@ rsync_uri_parse(const char **hostp, size_t *hostsz, *rtypep = RTYPE_CER; else if (strcasecmp(path + sz - 4, ".crl") == 0) *rtypep = RTYPE_CRL; - else if (strcasecmp(path + sz - 4, ".tal") == 0) - *rtypep = RTYPE_TAL; } return 1; |