if (debug) log_d("D check_realm");
static int check_realm(struct request *r){	char *a;	if (debug)		log_d("D check_realm");	if (r == 0 || r->c == 0 || r->c->realm == 0 || r->c->userfile == 0)		return 0;	a = r->authorization;	if (a == 0)		return -1;	if (strncasecmp(a, "basic", 5))		return -1;	a += 5;	while (*a == ' ')		++a;	if (webuserok(a, r->c->userfile, r->user, sizeof r->user, r->c->do_crypt))		return 0;	return -1;}