/dovecot/src/imap/ |
H A D | cmd-genurlauth.c | 26 const char *url_rump, *mechanism, *url, *error; local 37 mechanism, url_rump, &url, &error); 47 imap_append_astring(response, url);
|
H A D | cmd-urlfetch.c | 11 #include "imap-url.h" 29 const char *url; member in struct:cmd_urlfetch_url 166 /* retrieve next url */ 183 imap_append_astring(response, reply->url); 275 imap_append_astring(response, reply->url); 309 /* read url */ 314 ufurl_r->url = t_strdup(url_text); 359 const struct cmd_urlfetch_url *url; local 378 /* parse url arguments and group them per userid */ 392 array_foreach(&urls, url) { [all...] |
/dovecot/src/plugins/fts-solr/ |
H A D | fts-solr-plugin.h | 14 const char *url, *default_ns_prefix; member in struct:fts_solr_settings
|
H A D | solr-connection.c | 10 #include "http-url.h" 104 int solr_connection_init(const char *url, argument 114 if (http_url_parse(url, NULL, HTTP_URL_ALLOW_USERINFO_PART, pool_datastack_create(), 117 "fts_solr: Failed to parse HTTP url: %s", error); 438 const char *url; local 455 url = t_strconcat(conn->http_base_url, "select?", query, NULL); 458 conn->http_host, url, 497 const char *url; local 499 url = t_strconcat(conn->http_base_url, "update", NULL); 502 conn->http_host, url, [all...] |
/dovecot/src/lib-imap-urlauth/ |
H A D | imap-urlauth-fetch.h | 20 const char *url; member in struct:imap_urlauth_fetch_reply 47 int imap_urlauth_fetch_url(struct imap_urlauth_fetch *ufetch, const char *url, 50 const char *url, struct imap_url *imap_url,
|
H A D | imap-urlauth-fetch.c | 11 #include "imap-url.h" 12 #include "imap-msgpart-url.h" 20 char *url; member in struct:imap_urlauth_fetch_url 38 char *url; member in struct:imap_urlauth_fetch::__anon101 58 struct imap_urlauth_fetch_url *url, *url_next; local 65 i_free_and_null(ufetch->pending_reply.url); 70 url = ufetch->local_urls_head; 71 for (; url != NULL; url = url_next) { 72 url_next = url 143 imap_urlauth_fetch_error(struct imap_urlauth_fetch *ufetch, const char *url, enum imap_urlauth_fetch_flags url_flags, const char *error) argument 172 imap_urlauth_fetch_local(struct imap_urlauth_fetch *ufetch, const char *url, enum imap_urlauth_fetch_flags url_flags, struct imap_url *imap_url) argument 341 imap_urlauth_fetch_url(struct imap_urlauth_fetch *ufetch, const char *url, enum imap_urlauth_fetch_flags url_flags) argument 367 imap_urlauth_fetch_url_parsed(struct imap_urlauth_fetch *ufetch, const char *url, struct imap_url *imap_url, enum imap_urlauth_fetch_flags url_flags) argument 428 struct imap_urlauth_fetch_url *url, *url_next; local [all...] |
H A D | imap-urlauth.c | 14 #include "imap-url.h" 15 #include "imap-msgpart-url.h" 123 struct imap_url *url, const char *const *access_applications) 139 if (strncasecmp(url->uauth_access_application, app, len-1) == 0) { 142 return url->uauth_access_user == NULL; 146 return (!uctx->access_anonymous && url->uauth_access_user != NULL); 154 struct imap_url *url, bool ignore_unknown, 159 if (url->uauth_access_application == NULL) { 166 if (strcasecmp(url->uauth_access_application, "user") == 0) { 168 if (url 122 access_applications_have_access(struct imap_urlauth_context *uctx, struct imap_url *url, const char *const *access_applications) argument 153 imap_urlauth_check_access(struct imap_urlauth_context *uctx, struct imap_url *url, bool ignore_unknown, const char **error_r) argument 221 imap_urlauth_check_hostport(struct imap_urlauth_context *uctx, struct imap_url *url, const char **error_r) argument 248 struct imap_url *url; local 327 imap_urlauth_check(struct imap_urlauth_context *uctx, struct imap_url *url, bool ignore_unknown_access, const char **error_r) argument 372 imap_urlauth_fetch_parsed(struct imap_urlauth_context *uctx, struct imap_url *url, struct imap_msgpart_url **mpurl_r, enum mail_error *error_code_r, const char **error_r) argument 461 struct imap_url *url; local [all...] |
H A D | imap-urlauth-connection.c | 37 char *url; member in struct:imap_urlauth_request 255 i_debug("imap-urlauth: Fetching URL `%s'", urlreq->url); 259 str_append_tabescaped(cmd, urlreq->url); 279 const char *target_user, const char *url, 290 urlreq->url = i_strdup(url); 302 url, target_user); 314 i_free(urlreq->url); 363 reply.url = urlreq->url; 278 imap_urlauth_request_new(struct imap_urlauth_connection *conn, const char *target_user, const char *url, enum imap_urlauth_fetch_flags flags, imap_urlauth_request_callback_t *callback, void *context) argument [all...] |
/dovecot/src/lib-oauth2/ |
H A D | oauth2-introspect.c | 8 #include "http-url.h" 81 struct http_url *url; local 97 &url, &error) < 0) { 106 req->req = http_client_request_url(req->set->client, "POST", url, 117 req->req = http_client_request_url(req->set->client, "GET", url, 122 if (url->user != NULL) 123 http_client_request_set_auth_simple(req->req, url->user, url->password);
|
H A D | oauth2-refresh.c | 8 #include "http-url.h" 121 struct http_url *url; local 131 pool, &url, &error) < 0) { 140 req->req = http_client_request_url(req->set->client, "POST", url, 153 if (url->user != NULL) 154 http_client_request_set_auth_simple(req->req, url->user, url->password);
|
H A D | oauth2-token-validate.c | 9 #include "http-url.h" 107 struct http_url *url; local 124 &url, &error) < 0) { 132 req->req = http_client_request_url(req->set->client, "GET", url, 136 if (url->user != NULL) 137 http_client_request_set_auth_simple(req->req, url->user, url->password);
|
/dovecot/src/lib-http/ |
H A D | http-url.h | 48 int http_url_parse(const char *url, struct http_url *base, 60 static inline in_port_t http_url_get_port_default(const struct http_url *url, argument 63 return (url->port != 0 ? url->port : default_port); 66 static inline in_port_t http_url_get_port(const struct http_url *url) argument 68 return http_url_get_port_default(url, 69 (url->have_ssl ? HTTPS_DEFAULT_PORT : HTTP_DEFAULT_PORT)); 94 const char *http_url_create(const struct http_url *url); 96 const char *http_url_create_host(const struct http_url *url); 97 const char *http_url_create_authority(const struct http_url *url); [all...] |
H A D | test-http-url.c | 5 #include "http-url.h" 9 const char *url; member in struct:valid_http_url_test 20 .url = "http://localhost", 24 .url = "http://www.%65%78%61%6d%70%6c%65.com", 28 .url = "http://www.dovecot.org:8080", 33 .url = "http://127.0.0.1", 39 .url = "http://[::1]", 45 .url = "http://[::1]:8080", 52 .url = "http://user@api.dovecot.org", 58 .url 301 const char *url = valid_url_tests[i].url; local 356 const char *url; member in struct:invalid_http_url_test 413 const char *url = invalid_url_tests[i].url; local 454 const char *url = parse_create_url_tests[i]; local [all...] |
H A D | http-request.h | 30 struct http_url *url; member in struct:http_request_target
|
H A D | http-url.c | 9 #include "http-url.h" 21 struct http_url *url; member in struct:http_url_parser 33 struct http_url *url = url_parser->url; local 81 if (url != NULL) { 82 uri_host_copy(parser->pool, &url->host, &auth.host); 83 url->port = auth.port; 84 url->user = p_strdup(parser->pool, user); 85 url->password = p_strdup(parser->pool, password); 105 struct http_url *url local 328 http_url_parse(const char *url, struct http_url *base, enum http_url_parse_flags flags, pool_t pool, struct http_url **url_r, const char **error_r) argument 378 struct http_url *url = p_new(pool, struct http_url, 1); local 477 http_url_add_scheme(string_t *urlstr, const struct http_url *url) argument 488 http_url_add_authority(string_t *urlstr, const struct http_url *url) argument 497 http_url_add_target(string_t *urlstr, const struct http_url *url) argument 515 http_url_create(const struct http_url *url) argument 532 http_url_create_host(const struct http_url *url) argument 542 http_url_create_authority(const struct http_url *url) argument 551 http_url_create_target(const struct http_url *url) argument [all...] |
H A D | test-http-client.c | 8 #include "http-url.h" 300 struct http_url *url; local 304 &url, &error) < 0) 310 method, url->host.name, 311 t_strconcat("/", url->path, url->enc_query, NULL), 313 if (url->port != 0) 314 http_client_request_set_port(http_req, url->port); 315 if (url->have_ssl)
|
H A D | test-http-request-parser.c | 10 #include "http-url.h" 25 struct http_url url; member in struct:http_request_valid_parse_test::__anon95 47 .url = { .host = { .name = "example.com" } } 59 .url = { .host = { .name = "example.com" } } 70 .url = { 83 .url = { 100 .url = { 115 .url = { 128 .url = { .host = { .name = "www.example.com" } } 141 .url [all...] |
/dovecot/src/imap-login/ |
H A D | client-authenticate.c | 15 #include "imap-url.h" 40 struct imap_url url; local 60 i_zero(&url); 61 url.userid = reply->destuser; 62 url.auth_type = client->auth_mech_name; 63 url.host.name = reply->host; 65 url.port = reply->port; 67 str_append(referral, imap_url_create(&url));
|
/dovecot/src/lib-imap/ |
H A D | test-imap-url.c | 5 #include "imap-url.h" 9 const char *url; member in struct:valid_imap_url_test 19 .url = "imap://localhost", 23 .url = "imap://user@localhost", 28 .url = "imap://user;AUTH=PLAIN@localhost", 34 .url = "imap://;AUTH=PLAIN@localhost", 39 .url = "imap://%68endri%6B;AUTH=GSS%41PI@%65%78%61%6d%70%6c%65.com", 45 .url = "imap://user@localhost:993", 51 .url = "imap://user@127.0.0.1", 58 .url 616 const char *url = valid_url_tests[i].url; local 768 const char *url; member in struct:invalid_imap_url_test 939 const char *url = invalid_url_tests[i].url; local 999 const char *url = parse_create_url_tests[i]; local [all...] |
H A D | imap-url.c | 13 #include "imap-url.h" 121 struct imap_url *url; member in struct:imap_url_parser 173 struct imap_url *url = url_parser->url; local 241 if (url != NULL && uend > auth.enc_userinfo) { 244 url->userid = p_strdup(parser->pool, data); 254 if (url != NULL) { 257 url->auth_type = p_strdup(parser->pool, data); 262 if (url != NULL) { 263 url 273 struct imap_url *url = url_parser->url; local 435 struct imap_url *url = url_parser->url; local 836 struct imap_url *url = url_parser->url; local 892 imap_url_parse(const char *url, const struct imap_url *base, enum imap_url_parse_flags flags, struct imap_url **url_r, const char **error_r) argument 924 imap_url_append_mailbox(const struct imap_url *url, string_t *urlstr) argument 971 imap_url_create(const struct imap_url *url) argument [all...] |
/dovecot/src/plugins/fts/ |
H A D | fts-parser-tika.c | 8 #include "http-url.h" 44 const char *url, *error; local 46 url = mail_user_plugin_getenv(user, "fts_tika"); 47 if (url == NULL) { 60 if (http_url_parse(url, NULL, 0, user->pool, 62 i_error("fts_tika: Failed to parse HTTP url %s: %s", url, error);
|
/dovecot/src/lib-imap-storage/ |
H A D | imap-msgpart-url.c | 9 #include "imap-url.h" 11 #include "imap-msgpart-url.h" 33 int imap_msgpart_url_create(struct mail_user *user, const struct imap_url *url, argument 37 const char *section = url->section == NULL ? "" : url->section; 41 if (url->mailbox == NULL || url->uid == 0 || 42 url->search_program != NULL) { 54 mpurl->mailbox = i_strdup(url->mailbox); 55 mpurl->uidvalidity = url 75 struct imap_url base_url, *url; local [all...] |
/dovecot/src/submission/ |
H A D | cmd-data.c | 10 #include "imap-url.h" 12 #include "imap-msgpart-url.h" 264 cmd_burl_fetch(struct cmd_burl_context *burl_cmd, const char *url, argument 290 url, imap_url, IMAP_URLAUTH_FETCH_FLAG_BODY) == 0) { 306 const char *url, *error; local 316 url = argv[0]; 317 if (url == NULL) { 321 } else if (imap_url_parse(url, NULL, url_parse_flags, 352 /* direct local url */ 355 ret = cmd_burl_fetch(burl_cmd, url, imap_ur [all...] |
/dovecot/src/auth/ |
H A D | auth-policy.c | 11 #include "http-url.h" 42 const char *url; member in struct:policy_lookup_ctx 378 struct http_url *url; local 379 if (http_url_parse(context->url, NULL, HTTP_URL_ALLOW_USERINFO_PART, 380 context->pool, &url, &error) != 0) { 382 "Could not parse url %s: %s", context->url, error); 387 "POST", url, auth_policy_process_response, (void*)context); 400 if (url->user != NULL) { 402 http_client_request_set_auth_simple(context->http_request, url [all...] |
/dovecot/src/imap-urlauth/ |
H A D | imap-urlauth-worker.c | 25 #include "imap-url.h" 26 #include "imap-msgpart-url.h" 66 struct imap_msgpart_url *url; member in struct:client 131 if (client->url != NULL) { 224 if (client->url != NULL) { 225 /* deinitialize url */ 229 i_assert(client->url == NULL); 288 imap_msgpart_url_free(&client->url); 294 imap_msgpart_url_free(&client->url); 333 client_fetch_urlpart(struct client *client, const char *url, argument 395 client_fetch_url(struct client *client, const char *url, enum imap_urlauth_fetch_flags url_flags) argument 497 const char *url; local [all...] |