[Pvfs2-cvs] commit by nlmills in pvfs2/src/common/security:
pint-security.c security-types.h
CVS commit program
cvs at parl.clemson.edu
Mon May 24 00:48:47 EDT 2010
Update of /projects/cvsroot/pvfs2/src/common/security
In directory parlweb1:/tmp/cvs-serv32430/src/common/security
Modified Files:
Tag: cu-security-branch
pint-security.c security-types.h
Log Message:
removed unused fsid and serial fields from credential struct
Index: pint-security.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/security/Attic/pint-security.c,v
diff -p -u -r1.1.2.60 -r1.1.2.61
--- pint-security.c 21 May 2010 21:38:16 -0000 1.1.2.60
+++ pint-security.c 24 May 2010 04:48:46 -0000 1.1.2.61
@@ -435,7 +435,6 @@ int PINT_sign_credential(PVFS_credential
EVP_MD_CTX_init(&mdctx);
ret = EVP_SignInit_ex(&mdctx, md, NULL);
- ret &= EVP_SignUpdate(&mdctx, &cred->serial, sizeof(uint32_t));
ret &= EVP_SignUpdate(&mdctx, &cred->userid, sizeof(PVFS_uid));
ret &= EVP_SignUpdate(&mdctx, &cred->num_groups, sizeof(uint32_t));
if (cred->num_groups)
@@ -496,8 +495,6 @@ int PINT_verify_credential(const PVFS_cr
return 0;
}
- /* nlmills: TODO: implement credential revocation */
-
pubkey = SECURITY_lookup_pubkey(cred->issuer);
if (pubkey == NULL)
{
@@ -522,8 +519,7 @@ int PINT_verify_credential(const PVFS_cr
return 0;
}
- ret = EVP_VerifyUpdate(&mdctx, &cred->serial, sizeof(uint32_t));
- ret &= EVP_VerifyUpdate(&mdctx, &cred->userid, sizeof(PVFS_uid));
+ ret = EVP_VerifyUpdate(&mdctx, &cred->userid, sizeof(PVFS_uid));
ret &= EVP_VerifyUpdate(&mdctx, &cred->num_groups, sizeof(uint32_t));
if (cred->num_groups)
{
Index: security-types.h
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/security/Attic/security-types.h,v
diff -p -u -r1.1.2.3 -r1.1.2.4
--- security-types.h 25 Aug 2009 17:56:05 -0000 1.1.2.3
+++ security-types.h 24 May 2010 04:48:46 -0000 1.1.2.4
@@ -38,10 +38,9 @@ endecode_fields_3a2a_struct (
PVFS_handle, handle_array)
/* nlmills: TODO: link to credential documentation */
+/* nlmills: TODO: cleanup endecode */
typedef struct PVFS_credential PVFS_credential;
struct PVFS_credential {
- PVFS_fs_id fsid; /* fsid for which this credential is valid */
- uint32_t serial; /* serial number for use in revocation */
PVFS_uid userid; /* user id */
uint32_t num_groups; /* length of group_array */
PVFS_gid *group_array; /* groups for which the user is a member */
@@ -52,8 +51,8 @@ struct PVFS_credential {
};
endecode_fields_3a2a_struct (
PVFS_credential,
- PVFS_fs_id, fsid,
- uint32_t, serial,
+ skip4,,
+ skip4,,
PVFS_uid, userid,
uint32_t, num_groups,
PVFS_gid, group_array,
More information about the Pvfs2-cvs
mailing list