Loading src/gpo.cpp +4 −4 Changes for src/gpo.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -62,23 +62,23 @@ bool authdb::GpoData::getGpoValue(){ void authdb::GpoData::setAllowed(Allow &allowed){ setAuthData<Allow,uuid_t>(DataType::PolicyData,StorageType::BinaryStorage, this,&_Allowed,"groupmembers",allowed.uid,allowed.count); this,&_Allowed,"gpoallowed",allowed.uid,allowed.count); } void authdb::GpoData::getAlowed(Allow &allowed){ if(!_Allowed){ getAuthData<Allow>(DataType::PolicyData,StorageType::BinaryStorage, this,&_Allowed,"groupmembers"); this,&_Allowed,"gpoallowed"); } allowed.count =_Allowed->count; allowed.uid = new uuid_t[allowed.count]; char *start =_Allowed->data+sizeof(GpoData::Allow); char *start =_Allowed->data+sizeof(GpoData::Allow)-sizeof(uuid); for(size_t i=0; i<allowed.count; ++i){ memcpy(&allowed.uid[i],start+(i*sizeof(uuid_t)),sizeof(uuid_t)); } } } authdb::GpoData::GpoData(uuid gpid) : AuthData(gpid.value){ Loading Loading
src/gpo.cpp +4 −4 Changes for src/gpo.cpp: 4 added lines, 4 removed lines. Original line number Diff line number Diff line Loading @@ -62,23 +62,23 @@ bool authdb::GpoData::getGpoValue(){ void authdb::GpoData::setAllowed(Allow &allowed){ setAuthData<Allow,uuid_t>(DataType::PolicyData,StorageType::BinaryStorage, this,&_Allowed,"groupmembers",allowed.uid,allowed.count); this,&_Allowed,"gpoallowed",allowed.uid,allowed.count); } void authdb::GpoData::getAlowed(Allow &allowed){ if(!_Allowed){ getAuthData<Allow>(DataType::PolicyData,StorageType::BinaryStorage, this,&_Allowed,"groupmembers"); this,&_Allowed,"gpoallowed"); } allowed.count =_Allowed->count; allowed.uid = new uuid_t[allowed.count]; char *start =_Allowed->data+sizeof(GpoData::Allow); char *start =_Allowed->data+sizeof(GpoData::Allow)-sizeof(uuid); for(size_t i=0; i<allowed.count; ++i){ memcpy(&allowed.uid[i],start+(i*sizeof(uuid_t)),sizeof(uuid_t)); } } } authdb::GpoData::GpoData(uuid gpid) : AuthData(gpid.value){ Loading