Commit ae112e34 authored by jan.koester's avatar jan.koester
Browse files

test

parent 97a4bdc9
Loading
Loading
Loading
Loading
Loading
+6 −1
Changes for src/gpo.cpp: 6 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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);
@@ -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);
    }
}

+8 −0
Changes for src/uuid.cpp: 8 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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)
+4 −0
Changes for src/uuid.h: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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);