/systemd/src/basic/ |
H A D | web-util.c | 39 bool http_url_is_valid(const char *url) { argument 42 if (isempty(url)) 45 p = startswith(url, "http://"); 47 p = startswith(url, "https://"); 57 bool documentation_url_is_valid(const char *url) { argument 60 if (isempty(url)) 63 if (http_url_is_valid(url)) 66 p = startswith(url, "file:/"); 68 p = startswith(url, "info:"); 70 p = startswith(url, "ma [all...] |
/systemd/src/shared/ |
H A D | import-util.c | 33 int import_url_last_component(const char *url, char **ret) { argument 37 e = strchrnul(url, '?'); 39 while (e > url && e[-1] == '/') 43 while (p > url && p[-1] != '/') 58 int import_url_change_last_component(const char *url, const char *suffix, char **ret) { argument 62 assert(url); 65 e = strchrnul(url, '?'); 67 while (e > url && e[-1] == '/') 70 while (e > url && e[-1] != '/') 73 if (e <= url) [all...] |
/systemd/src/journal/ |
H A D | journal-qrcode.c | 56 char *url = NULL; local 64 f = open_memstream(&url, &url_size); 86 free(url); 92 qr = QRcode_encodeString(url, 0, QR_ECLEVEL_L, QR_MODE_8, 1); 93 free(url);
|
/systemd/src/import/ |
H A D | pull.c | 60 const char *url, *local; local 64 url = argv[1]; 65 if (!http_url_is_valid(url)) { 66 log_error("URL '%s' is not valid.", url); 73 r = import_url_last_component(url, &l); 105 log_info("Pulling '%s', saving as '%s'.", url, local); 107 log_info("Pulling '%s'.", url); 121 r = tar_pull_start(pull, url, local, arg_force, arg_verify, arg_settings); 146 const char *url, *local; local 150 url [all...] |
H A D | curl-util.c | 281 int curl_glue_make(CURL **ret, const char *url, void *userdata) { argument 287 assert(url); 295 if (curl_easy_setopt(c, CURLOPT_URL, url) != CURLE_OK) {
|
H A D | pull-common.c | 46 const char *url, 59 assert(url); 65 escaped_url = xescape(url, FILENAME_ESCAPE); 160 static int hash_url(const char *url, char **ret) { argument 164 assert(url); 166 h = siphash24(url, strlen(url), k.bytes); 173 int pull_make_path(const char *url, const char *etag, const char *image_root, const char *prefix, const char *suffix, char **ret) { argument 177 assert(url); 183 escaped_url = xescape(url, FILENAME_ESCAP 45 pull_find_old_etags( const char *url, const char *image_root, int dt, const char *prefix, const char *suffix, char ***etags) argument 221 pull_make_settings_job( PullJob **ret, const char *url, CurlGlue *glue, PullJobFinished on_finished, void *userdata) argument 264 pull_make_verification_jobs( PullJob **ret_checksum_job, PullJob **ret_signature_job, ImportVerify verify, const char *url, CurlGlue *glue, PullJobFinished on_finished, void *userdata) argument [all...] |
H A D | pull-job.c | 47 free(j->url); 68 log_info("Download of %s complete.", j->url); 107 log_error("HTTP request to %s failed with code %li.", j->url, status); 111 log_error("HTTP request to %s finished with unexpected code %li.", j->url, status); 145 log_debug("SHA256 of %s is %s.", j->url, j->checksum); 159 if (j->url) 160 (void) fsetxattr(j->disk_fd, "user.source_url", j->url, strlen(j->url), 0); 443 log_info("Downloading %s for %s.", format_bytes(bytes, sizeof(bytes), j->content_length), j->url); 499 j->url, 515 pull_job_new(PullJob **ret, const char *url, CurlGlue *glue, void *userdata) argument [all...] |
H A D | pull-job.h | 60 char *url; member in struct:PullJob 108 int pull_job_new(PullJob **job, const char *url, CurlGlue *glue, void *userdata);
|
H A D | pull-raw.c | 280 r = pull_make_path(i->raw_job->url, i->raw_job->etag, i->image_root, ".raw-", ".raw", &i->final_path); 348 r = pull_make_path(i->settings_job->url, i->settings_job->etag, i->image_root, ".settings-", NULL, &i->settings_path); 497 r = pull_make_path(j->url, j->etag, i->image_root, ".raw-", ".raw", &i->final_path); 530 r = pull_make_path(j->url, j->etag, i->image_root, ".settings-", NULL, &i->settings_path); 560 const char *url, 572 if (!http_url_is_valid(url)) 590 r = pull_job_new(&i->raw_job, url, i->glue, i); 600 r = pull_find_old_etags(url, i->image_root, DT_REG, ".raw-", ".raw", &i->raw_job->old_etags); 605 r = pull_make_settings_job(&i->settings_job, url, i->glue, raw_pull_job_on_finished, i); 613 r = pull_find_old_etags(i->settings_job->url, 558 raw_pull_start( RawPull *i, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings) argument [all...] |
H A D | pull-tar.c | 230 r = pull_make_path(i->tar_job->url, i->tar_job->etag, i->image_root, ".tar-", NULL, &i->final_path); 244 r = pull_make_path(i->settings_job->url, i->settings_job->etag, i->image_root, ".settings-", NULL, &i->settings_path); 402 r = pull_make_path(j->url, j->etag, i->image_root, ".tar-", NULL, &i->final_path); 440 r = pull_make_path(j->url, j->etag, i->image_root, ".settings-", NULL, &i->settings_path); 470 const char *url, 482 if (!http_url_is_valid(url)) 500 r = pull_job_new(&i->tar_job, url, i->glue, i); 510 r = pull_find_old_etags(url, i->image_root, DT_DIR, ".tar-", NULL, &i->tar_job->old_etags); 516 r = pull_make_settings_job(&i->settings_job, url, i->glue, tar_pull_job_on_finished, i); 524 r = pull_find_old_etags(i->settings_job->url, 468 tar_pull_start( TarPull *i, const char *url, const char *local, bool force_local, ImportVerify verify, bool settings) argument [all...] |
/systemd/src/journal-remote/ |
H A D | journal-upload.h | 26 char *url; member in struct:Uploader
|
H A D | journal-upload.c | 258 if (arg_key || startswith(u->url, "https://")) { 268 else if (arg_trust || startswith(u->url, "https://")) 286 code = curl_easy_setopt(u->easy, CURLOPT_URL, u->url); 425 static int setup_uploader(Uploader *u, const char *url, const char *state_file) { argument 430 assert(url); 435 if (!(host = startswith(url, "http://")) && !(host = startswith(url, "https://"))) { 436 host = url; 441 u->url = strjoin(proto, url, "/uploa [all...] |
H A D | journal-gatewayd.c | 827 const char *url, 837 assert(url); 857 if (streq(url, "/")) 860 if (streq(url, "/entries")) 863 if (startswith(url, "/fields/")) 864 return request_handler_fields(connection, url + 8, *connection_cls); 866 if (streq(url, "/browse")) 869 if (streq(url, "/machine")) 824 request_handler( void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **connection_cls) argument
|
H A D | journal-remote.c | 137 static int spawn_curl(const char* url) { argument 142 url); 560 const char *url, 573 assert(url); 576 log_trace("Handling a connection %s %s %s", method, url, version); 587 if (!streq(url, "/upload")) 906 const char *url; local 911 url = strjoina(arg_url, "entries"); 913 url = strjoina(arg_url, "/entries"); 916 url 557 request_handler( void *cls, struct MHD_Connection *connection, const char *url, const char *method, const char *version, const char *upload_data, size_t *upload_data_size, void **connection_cls) argument [all...] |