auth: add set_uid() to KeyRing, print out auid in print function

This commit is contained in:
Greg Farnum 2010-03-05 12:36:56 -08:00
parent 846acac212
commit 036f923a8e
2 changed files with 4 additions and 0 deletions

View File

@ -68,6 +68,7 @@ void KeyRing::print(ostream& out)
p != keys.end();
++p) {
out << p->first << std::endl;
out << "\tauid: " << p->second.auid << std::endl;
out << "\tkey: " << p->second.key << std::endl;
for (map<string, bufferlist>::iterator q = p->second.caps.begin();

View File

@ -55,6 +55,9 @@ public:
void set_caps(EntityName& name, map<string, bufferlist>& caps) {
keys[name].caps = caps;
}
void set_uid(EntityName& ename, __u64 auid) {
keys[ename].auid = auid;
}
void import(KeyRing& other);
// encoders