Loading src/gpo.cpp +6 −1 Changes for src/gpo.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -94,6 +94,11 @@ void authdb::GpoData::getAlowed(std::vector<uuid> &allowed){ std::copy(_Allowed->data,_Allowed->data+sizeof(size_t),&asize); if(asize==0) return; // allowed.resize(asize); asize*=sizeof(uuid_t); char *start=_Allowed->data+sizeof(size_t); Loading @@ -103,7 +108,7 @@ void authdb::GpoData::getAlowed(std::vector<uuid> &allowed){ char test[255]; uuid_unparse(*tmp,test); std::cout << test << std::endl; allowed.emplace_back(*tmp); allowed.push_back(*tmp); } } Loading src/uuid.cpp +8 −0 Changes for src/uuid.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,6 +65,14 @@ void authdb::uuid::clear(){ uuid_clear(value); } char authdb::uuid::at(size_t pos){ return value[pos]; } void authdb::uuid::insert(size_t pos, char src){ value[pos]=src; } bool authdb::uuid::operator==(const uuid_t src) const{ if(uuid_compare(value,src)==0) Loading src/uuid.h +4 −0 Changes for src/uuid.h: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ namespace authdb{ void clear(); char at(size_t pos); void insert(size_t pos,char src); uuid& operator=(const uuid_t &src); uuid& operator=(const uuid& rval); Loading Loading
src/gpo.cpp +6 −1 Changes for src/gpo.cpp: 6 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -94,6 +94,11 @@ void authdb::GpoData::getAlowed(std::vector<uuid> &allowed){ std::copy(_Allowed->data,_Allowed->data+sizeof(size_t),&asize); if(asize==0) return; // allowed.resize(asize); asize*=sizeof(uuid_t); char *start=_Allowed->data+sizeof(size_t); Loading @@ -103,7 +108,7 @@ void authdb::GpoData::getAlowed(std::vector<uuid> &allowed){ char test[255]; uuid_unparse(*tmp,test); std::cout << test << std::endl; allowed.emplace_back(*tmp); allowed.push_back(*tmp); } } Loading
src/uuid.cpp +8 −0 Changes for src/uuid.cpp: 8 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -65,6 +65,14 @@ void authdb::uuid::clear(){ uuid_clear(value); } char authdb::uuid::at(size_t pos){ return value[pos]; } void authdb::uuid::insert(size_t pos, char src){ value[pos]=src; } bool authdb::uuid::operator==(const uuid_t src) const{ if(uuid_compare(value,src)==0) Loading
src/uuid.h +4 −0 Changes for src/uuid.h: 4 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -51,6 +51,10 @@ namespace authdb{ void clear(); char at(size_t pos); void insert(size_t pos,char src); uuid& operator=(const uuid_t &src); uuid& operator=(const uuid& rval); Loading