]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
A bit mote on the user.h
authoranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 1 Feb 2007 00:44:38 +0000 (00:44 +0000)
committeranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Thu, 1 Feb 2007 00:44:38 +0000 (00:44 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1066 29311d96-e01e-0410-9327-a35deaab8ce9

branches/aleung/security1/ceph/client/User.h

index 69fa642386bb39d26225733ac9657a519d9e784f..9b19b35b4b2a75efa4551e607f069bef71954c1b 100644 (file)
@@ -21,6 +21,18 @@ class User {
   esignPub myPubKey;
   // a kerberos like certification ticket
   certTicket *ticket;
+
+ public:
+  // the pub/prv key pair must exist before hand. The user
+  // presumably logs in with a passwd which relates
+  // to the key gen
+  User(uid_t u, gid g, char *uname, esignPub key) :
+    uid(u),
+    gid(g),
+    username(uname),
+    myPubKey(key)
+    { }
+    
 }
 
 #endif