main.c
/*
 * Add rsync URIs (CER) from a TAL file, RFC 7730.
 * Only use the first URI of the set.
 */
Add rsync URIs (CER) from a TAL file, RFC 7730.
Only use the first URI of the set.
Add rsync URIs ( CER ) from a TAL file RFC 7730 . Only use the first URI of the set .
static void
queue_add_from_tal(int proc, int rsync, struct entityq *q,
    const struct tal *tal, struct repotab *rt, size_t *eid)
{
	char			*nfile;
	const struct repo	*repo;
	const char		*uri;
	assert(tal->urisz);
	uri = tal->uri[0];
	assert(rtype_resolve(uri) == RTYPE_CER);
	repo = repo_lookup(rsync, rt, uri);
	uri += 8 + strlen(repo->host) + 1 + strlen(repo->module) + 1;
	if (asprintf(&nfile, "%s/%s/%s", repo->host, repo->module, uri) == -1)
		err(1, "asprintf");
	entityq_add(proc, q, nfile, RTYPE_CER, repo, NULL, tal->pkey,
	    tal->pkeysz, tal->descr, eid);
}
static void queue_add_from_tal ( int proc , int rsync , struct entityq * q , const struct tal * tal , struct repotab * rt , size_t * eid ) { char * nfile ; const struct repo * repo ; const char * uri ; assert ( tal -> urisz ) ; uri = tal -> uri [ 0 ] ; assert ( rtype_resolve ( uri ) == RTYPE_CER ) ; repo = repo_lookup ( rsync , rt , uri ) ; uri += 8 + strlen ( repo -> host ) + 1 + strlen ( repo -> module ) + 1 ; if ( asprintf ( & nfile , " " , repo -> host , repo -> module , uri ) == -1 ) err ( 1 , " " ) ; entityq_add ( proc , q , nfile , RTYPE_CER , repo , NULL , tal -> pkey , tal -> pkeysz , tal -> descr , eid ) ; }
Add rsync URIs (CER) from a TAL file, RFC 7730.
Add rsync URIs ( CER ) from a TAL file RFC 7730 .
/* Look up the repository. */