static char uh_realms[UH_LIMIT_AUTHREALMS * sizeof(struct auth_realm)] = { 0 };
static int uh_realm_count = 0;
-struct auth_realm * uh_auth_add(
- char *path, char *realm, char *user, char *pass
-) {
+struct auth_realm * uh_auth_add(char *path, char *user, char *pass)
+{
struct auth_realm *new = NULL;
struct passwd *pwd;
struct spwd *spwd;
memset(new, 0, sizeof(struct auth_realm));
- memcpy(new->realm, realm,
- min(strlen(realm), sizeof(new->realm) - 1));
-
memcpy(new->path, path,
min(strlen(path), sizeof(new->path) - 1));
"Content-Type: text/plain\r\n"
"Content-Length: 23\r\n\r\n"
"Authorization Required\n",
- req->version, realm ? realm->realm : ""
+ req->version, cl->server->conf->realm
);
return 0;