From e08a9eb1bd8d5252bea08daf78f1bab1d953c58f Mon Sep 17 00:00:00 2001 From: anwleung Date: Thu, 1 Feb 2007 00:44:38 +0000 Subject: [PATCH] A bit mote on the user.h git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1066 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/aleung/security1/ceph/client/User.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/branches/aleung/security1/ceph/client/User.h b/branches/aleung/security1/ceph/client/User.h index 69fa642386bb3..9b19b35b4b2a7 100644 --- a/branches/aleung/security1/ceph/client/User.h +++ b/branches/aleung/security1/ceph/client/User.h @@ -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 -- 2.39.5