]> git.saurik.com Git - apple/security.git/blobdiff - OSX/libsecurity_cdsa_utilities/lib/aclsubject.cpp
Security-59306.61.1.tar.gz
[apple/security.git] / OSX / libsecurity_cdsa_utilities / lib / aclsubject.cpp
index 70ec05e5c83ecc94c5b947ff535b1e633d000677..07951e032e74d1d7e77e6ff63125ca85248c3720 100644 (file)
@@ -115,13 +115,13 @@ AclSubject::Maker::~Maker()
 // A SimpleAclSubject accepts only a single type of sample, validates
 // samples independently, and makes no use of certificates.
 //
 // A SimpleAclSubject accepts only a single type of sample, validates
 // samples independently, and makes no use of certificates.
 //
-bool SimpleAclSubject::validate(const AclValidationContext &ctx) const
+bool SimpleAclSubject::validates(const AclValidationContext &ctx) const
 {
     for (uint32 n = 0; n < ctx.count(); n++) {
         const TypedList &sample = ctx[n];
         if (!sample.isProper())
             CssmError::throwMe(CSSM_ERRCODE_INVALID_SAMPLE_VALUE);
 {
     for (uint32 n = 0; n < ctx.count(); n++) {
         const TypedList &sample = ctx[n];
         if (!sample.isProper())
             CssmError::throwMe(CSSM_ERRCODE_INVALID_SAMPLE_VALUE);
-        if (sample.type() == type() && validate(ctx, sample)) {
+        if (sample.type() == type() && validates(ctx, sample)) {
                        ctx.matched(ctx[n]);
             return true;       // matched this sample; validation successful
                }
                        ctx.matched(ctx[n]);
             return true;       // matched this sample; validation successful
                }