3 #include "uptane/exceptions.h"
7 void Fetcher::fetchRole(std::string*
result, int64_t maxsize, RepositoryType repo,
const Uptane::Role& role,
8 Version version)
const {
9 std::string url = (repo == RepositoryType::Director()) ? director_server : repo_server;
10 if (role.IsDelegation()) {
11 url +=
"/delegations";
13 url +=
"/" + version.RoleFileName(role);
15 if (!response.isOk()) {