aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authorJeremy Henty <onepoint@starurchin.org>2012-12-10 02:00:04 +0000
committerJeremy Henty <onepoint@starurchin.org>2012-12-10 02:00:04 +0000
commit6675d229bcee77341ef46ec3c2252f2dee52ac66 (patch)
tree8285797a97d63fd86f2ddd4fdedd6b16cb3c78d5 /src/auth.c
parentfb85e0c89a2fc119d99e80b0070e95ceb5381f67 (diff)
Dillo: parameterise window titles.
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/auth.c b/src/auth.c
index d6ff081b..c019b8ff 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -619,20 +619,21 @@ static int Auth_do_auth_dialog(const AuthParse_t *auth_parse,
const DilloUrl *url)
{
int ret;
- char *message;
+ char *title, *msg;
AuthDialogData_t *data;
const char *typestr = auth_parse->type == DIGEST ? "Digest" : "Basic";
_MSG("auth.c: Auth_do_auth_dialog: realm = '%s'\n", auth_parse->realm);
- message = dStrconcat("The server at ", URL_HOST(url), " requires a username"
- " and password for \"", auth_parse->realm, "\".\n\n"
- "Authentication scheme: ", typestr, NULL);
+ title = dStrconcat("Dillo: Password for ", auth_parse->realm, NULL);
+ msg = dStrconcat("The server at ", URL_HOST(url), " requires a username"
+ " and password for \"", auth_parse->realm, "\".\n\n"
+ "Authentication scheme: ", typestr, NULL);
data = dNew(AuthDialogData_t, 1);
data->auth_parse = auth_parse;
data->url = a_Url_dup(url);
- ret = a_Dialog_user_password(message, Auth_do_auth_dialog_cb, data);
- dFree(message);
+ ret = a_Dialog_user_password(title, msg, Auth_do_auth_dialog_cb, data);
+ dFree(title); dFree(msg);
a_Url_free((void *)data->url);
dFree(data);
return ret;