Auth::Basic::User::User(Auth::SchemeConfig *aConfig, const char *aRequestRealm) :
Auth::User(aConfig, aRequestRealm),
- passwd(NULL),
- queue(NULL),
- currentRequest(NULL)
+ passwd(nullptr),
+ queue(nullptr),
+ currentRequest(nullptr)
{}
Auth::Basic::User::~User()
bool
Auth::Basic::User::valid() const
{
- if (username() == NULL)
+ if (username() == nullptr)
return false;
- if (passwd == NULL)
+ if (passwd == nullptr)
return false;
return true;
}
credentials(Auth::Unchecked);
xfree(passwd);
passwd = from->passwd;
- from->passwd = NULL;
+ from->passwd = nullptr;
}
if (credentials() == Auth::Failed) {