X-Git-Url: https://git.saurik.com/apple/security.git/blobdiff_plain/e3d460c9de4426da6c630c3ae3f46173a99f82d8..07691282a056c4efea71e1e505527601e8cc166b:/securityd/src/tokendatabase.h diff --git a/securityd/src/tokendatabase.h b/securityd/src/tokendatabase.h index 566df264..673f7b41 100644 --- a/securityd/src/tokendatabase.h +++ b/securityd/src/tokendatabase.h @@ -77,8 +77,6 @@ public: private: std::string mDbName; // name given during open bool mHasAclState; // Adornment is carrying active ACL state - - ResetGeneration mResetLevel; // validity tag }; @@ -140,8 +138,8 @@ protected: Record *commit() { database().addReference(*this); return this; } - void validate(AclAuthorization auth, const AccessCredentials *cred) - { TokenAcl::validate(auth, cred, &database()); } + void validate(AclAuthorization auth, const AccessCredentials *cred, Database *relatedDatabase = NULL) + { TokenAcl::validate(auth, cred, relatedDatabase ? relatedDatabase : &database()); } // TokenAcl personality AclKind aclKind() const; @@ -206,10 +204,10 @@ public: CssmDbRecordAttributeData *inAttributes, mach_msg_type_number_t inAttributesLength, CssmData *data, RefPointer &key, CssmDbRecordAttributeData * &outAttributes, mach_msg_type_number_t &outAttributesLength); - void insertRecord(CSSM_DB_RECORDTYPE recordtype, + void tokenInsertRecord(CSSM_DB_RECORDTYPE recordtype, const CssmDbRecordAttributeData *attributes, mach_msg_type_number_t inAttributesLength, const CssmData &data, RefPointer &record); - void modifyRecord(CSSM_DB_RECORDTYPE recordtype, Record *record, + void modifyRecord(CSSM_DB_RECORDTYPE recordtype, Database::Record *record, const CssmDbRecordAttributeData *attributes, mach_msg_type_number_t inAttributesLength, const CssmData *data, CSSM_DB_MODIFY_MODE modifyMode); void deleteRecord(Database::Record *record);