Lines Matching defs:rrdp
53 * A ta, rsync or rrdp repository.
55 * a ta, rsync or rrdp repository. Multiple repositories can use the
95 const struct rrdprepo *rrdp;
299 if (rp->rrdp)
300 return rp->rrdp->state;
316 if (vp != rp->ta && vp != rp->rsync && vp != rp->rrdp)
319 /* for rrdp try to fall back to rsync */
320 if (vp == rp->rrdp && !ok && !nofetch) {
321 rp->rrdp = NULL;
592 * Check if a directory is an active rrdp repository.
601 if (rp->rrdp == NULL)
603 if (strcmp(dir, rp->rrdp->basedir) == 0)
620 if (rp->rrdp != rr)
772 errx(1, "non-existent rrdp repo %u", id);
891 rr->basedir = repo_dir(uri, ".rrdp", 1);
922 errx(1, "non-existent rrdp repo %u", id);
924 /* remove rrdp repository contents */
947 errx(1, "non-existent rrdp repo %u", id);
957 /* try to open file first in rrdp then in valid repo */
983 /* add new file to rrdp dir */
1112 * over to the rrdp process.
1241 rp->rrdp = rrdp_get(notify);
1242 if (rp->rrdp == NULL)
1312 } else if (rp->rrdp) {
1313 path = rrdp_filename(rp->rrdp, rp->repouri, 0);
1360 !(rp->rrdp == NULL && rp->rsync == NULL && rp->ta == NULL))
1366 * Return the protocol string "rrdp", "rsync", "https" which was used to sync.
1382 if (rp->rrdp != NULL)
1383 return "rrdp";
1416 else if (rp->rrdp)
1417 rrdp_finish(rp->rrdp->id, 0);
1431 } else if (rp->rrdp) {
1433 rrdp_abort(rp->rrdp->id);
1488 strncmp(file, ".rrdp/", strlen(".rrdp/")) == 0)
1648 if (rp->rrdp == NULL)
1650 rr = (struct rrdprepo *)rp->rrdp;
1658 /* try to remove file from rrdp repo ... */
1702 size_t rrdpsz = strlen(".rrdp/");
1708 strncmp(fp->file, ".rrdp/", rrdpsz) != 0 &&
1786 if (rp != NULL && rp->rrdp != NULL)
1787 return rp->rrdp->state == REPO_DONE ? rp->rrdp : NULL;
1814 /* handle rrdp .state files explicitly */
1833 * If the file exists in the rrdp dir
1836 * it over the file in the rrdp dir.
1881 /* rpki.example.org or .rrdp / .rsync / .ta */
1886 else if (strcmp(".rrdp", e->fts_name) == 0)
1893 /* rpki.example.org/repository or .rrdp/hashdir */
1899 * special handling for rrdp directories,
1901 * only if rrdp is active.
1917 /* do not remove .rsync and .rrdp */
1964 /* then delete files requested by rrdp */