typedef struct _realm {
char const *name;
- int striprealm;
+ bool strip_realm;
home_pool_t *auth_pool;
home_pool_t *acct_pool;
* Doing it here catches the case of proxied tunneled
* requests.
*/
- if (realm && (realm->striprealm == true) &&
+ if (realm && (realm->strip_realm == true) &&
(strippedname = pairfind(request->proxy->vps, PW_STRIPPED_USER_NAME, 0, TAG_ANY)) != NULL) {
/*
* If there's a Stripped-User-Name attribute in
memset(r, 0, sizeof(*r));
r->name = name2;
- r->striprealm = 1;
+ r->strip_realm = true;
#ifdef WITH_PROXY
r->auth_pool = auth_pool;
r->acct_pool = acct_pool;
cp = cf_pair_find(cs, "nostrip");
if (cp && (cf_pair_value(cp) == NULL)) {
- r->striprealm = 0;
+ r->strip_realm = false;
cf_log_info(cs, "\tnostrip");
}
/*
* If we've been told to strip the realm off, then do so.
*/
- if (realm->striprealm) {
+ if (realm->strip_realm) {
/*
* Create the Stripped-User-Name attribute, if it
* doesn't exist.