From d60308fc7d2efbb0006a3bf0b8e974b021535b5e Mon Sep 17 00:00:00 2001 From: anwleung Date: Wed, 31 Jan 2007 23:28:11 +0000 Subject: [PATCH] Added the (empty) user class git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1064 29311d96-e01e-0410-9327-a35deaab8ce9 --- branches/aleung/security1/ceph/client/User.h | 26 ++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 branches/aleung/security1/ceph/client/User.h diff --git a/branches/aleung/security1/ceph/client/User.h b/branches/aleung/security1/ceph/client/User.h new file mode 100644 index 0000000000000..69fa642386bb3 --- /dev/null +++ b/branches/aleung/security1/ceph/client/User.h @@ -0,0 +1,26 @@ +/********** + * This class constructs a user instance. + * Clients will act a proxies for user behavior. + * We should assume the client has authenticated alreadt + * perhaps to the kernel. + **********/ +#ifndef __USER_H +#define __USER_H + +#include +using namespace std; + +#include"crypto/CryptoLib.h" +using namespace CryptoLib; + +class User { + // identification + uid_t uid; + gid_t gid; + char *username; + esignPub myPubKey; + // a kerberos like certification ticket + certTicket *ticket; +} + +#endif -- 2.39.5