// This tries to find the source AclObject and hands the question off to it.
// If anything isn't right, fail the validation.
//
-bool OriginAclSubject::validate(const AclValidationContext &ctx) const
+bool OriginAclSubject::validates(const AclValidationContext &ctx) const
{
if (Environment *env = ctx.environment<Environment>())
if (ObjectAcl *source = env->preAuthSource())
const char *mCredTag;
};
-bool SourceAclSubject::SourceAclSubject::validate(const AclValidationContext &baseCtx) const
+bool SourceAclSubject::SourceAclSubject::validates(const AclValidationContext &baseCtx) const
{
// try to authenticate our sub-subject
if (Environment *env = baseCtx.environment<Environment>()) {
if (!accepted) {
secdebug("preauth", "%p needs to authenticate its subject", this);
SourceValidationContext ctx(baseCtx);
- if (mSourceSubject->validate(ctx)) {
+ if (mSourceSubject->validates(ctx)) {
secdebug("preauth", "%p pre-authenticated", this);
accepted = true;
}