131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
-
-
+
+
|
/*
** Use Fossil credentials for HTTP Basic Authorization prompt
*/
static int use_fossil_creds_for_httpauth_prompt(void){
Blob x;
char c;
char *zPrompt = mprintf(
"\nBasic Authorization over %s required to continue.\n"
"Use Fossil username and password (y/N)? ",
"\n%s requires Basic Authorization over %s.\n"
"Use Fossil username and password (y/N)? ", g.urlName,
g.urlIsHttps==1 ? "encrypted HTTPS" : "unencrypted HTTP");
prompt_user(zPrompt, &x);
c = blob_str(&x)[0];
blob_reset(&x);
free(zPrompt);
return ( c=='y' || c=='Y' );
}
|