]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Added the (empty) user class
authoranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 31 Jan 2007 23:28:11 +0000 (23:28 +0000)
committeranwleung <anwleung@29311d96-e01e-0410-9327-a35deaab8ce9>
Wed, 31 Jan 2007 23:28:11 +0000 (23:28 +0000)
git-svn-id: https://ceph.svn.sf.net/svnroot/ceph@1064 29311d96-e01e-0410-9327-a35deaab8ce9

branches/aleung/security1/ceph/client/User.h [new file with mode: 0644]

diff --git a/branches/aleung/security1/ceph/client/User.h b/branches/aleung/security1/ceph/client/User.h
new file mode 100644 (file)
index 0000000..69fa642
--- /dev/null
@@ -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<iostream>
+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