Lines Matching refs:cookie
142 { "cookie-file", pa_config_parse_string, &c->cookie_file_from_client_conf, NULL },
169 int pa_client_conf_load_cookie(pa_client_conf *c, uint8_t *cookie, size_t cookie_length) {
174 pa_assert(cookie);
178 r = pa_authkey_load(c->cookie_file_from_env, true, cookie, cookie_length);
182 pa_log_warn("Failed to load cookie from %s (configured with environment variable PULSE_COOKIE): %s",
188 memcpy(cookie, c->cookie_from_x11, cookie_length);
192 pa_log_warn("Failed to load cookie from X11 root window property PULSE_COOKIE: size mismatch.");
196 r = pa_authkey_load(c->cookie_file_from_application, true, cookie, cookie_length);
200 pa_log_warn("Failed to load cookie from %s (configured by the application): %s", c->cookie_file_from_application,
205 r = pa_authkey_load(c->cookie_file_from_client_conf, true, cookie, cookie_length);
209 pa_log_warn("Failed to load cookie from %s (configured in client.conf): %s", c->cookie_file_from_client_conf,
213 r = pa_authkey_load(PA_NATIVE_COOKIE_FILE, false, cookie, cookie_length);
218 r = pa_authkey_load(fallback_path, false, cookie, cookie_length);
224 r = pa_authkey_load(PA_NATIVE_COOKIE_FILE, true, cookie, cookie_length);
228 pa_log("Failed to load cookie file from %s: %s", PA_NATIVE_COOKIE_FILE, pa_cstrerror(errno));
229 memset(cookie, 0, cookie_length);