MCPcopy Create free account
hub / github.com/dillo-browser/dillo / Cache_auth_callback

Function Cache_auth_callback

src/cache.c:1054–1064  ·  view source on GitHub ↗

* Ask for user/password and reload the page. */

Source from the content-addressed store, hash-verified

1052 * Ask for user/password and reload the page.
1053 */
1054static void Cache_auth_callback(void *vdata)
1055{
1056 CacheAuthData_t *data = (CacheAuthData_t *)vdata;
1057 if (a_Auth_do_auth(data->auth, data->url))
1058 a_Nav_reload(data->bw);
1059 Cache_auth_free(data->auth);
1060 a_Url_free(data->url);
1061 dFree(data);
1062 Cache_auth_entry(NULL, NULL);
1063 a_Timeout_remove();
1064}
1065
1066/**
1067 * Set a timeout function to ask for user/password.

Callers

nothing calls this directly

Calls 7

a_Auth_do_authFunction · 0.85
a_Nav_reloadFunction · 0.85
Cache_auth_freeFunction · 0.85
a_Url_freeFunction · 0.85
dFreeFunction · 0.85
Cache_auth_entryFunction · 0.85
a_Timeout_removeFunction · 0.85

Tested by

no test coverage detected