[Pvfs2-cvs] commit by nlmills in pvfs2/src/common/security:
pint-security.c
CVS commit program
cvs at parl.clemson.edu
Sun Mar 27 04:28:22 EST 2011
Update of /projects/cvsroot/pvfs2/src/common/security
In directory parlweb1:/tmp/cvs-serv11579
Modified Files:
Tag: cu-security-branch
pint-security.c
Log Message:
commented out statstics code in preparation for benchmarks
Index: pint-security.c
===================================================================
RCS file: /projects/cvsroot/pvfs2/src/common/security/Attic/pint-security.c,v
diff -p -u -r1.1.2.66 -r1.1.2.67
--- pint-security.c 10 Mar 2011 03:19:41 -0000 1.1.2.66
+++ pint-security.c 27 Mar 2011 09:28:22 -0000 1.1.2.67
@@ -201,6 +201,7 @@ int PINT_init_capability(PVFS_capability
return ret;
}
+#if 0
/* nlmills: temporary function to help gather statistics */
static void hash_capability(const PVFS_capability *cap, char *mdstr)
{
@@ -234,6 +235,7 @@ static void hash_capability(const PVFS_c
sprintf(mdstr+2*i, "%02x", (unsigned int)md[i]);
}
}
+#endif
/* PINT_sign_capability
*
@@ -329,8 +331,10 @@ int PINT_sign_capability(PVFS_capability
EVP_MD_CTX_cleanup(&mdctx);
+#if 0
hash_capability(cap, mdstr);
gossip_debug(GOSSIP_SECURITY_DEBUG, "CAPSIGN: %s\n", mdstr);
+#endif
return 0;
}
@@ -368,8 +372,10 @@ int PINT_verify_capability(const PVFS_ca
return 0;
}
+#if 0
hash_capability(cap, mdstr);
gossip_debug(GOSSIP_SECURITY_DEBUG, "CAPVRFY: %s\n", mdstr);
+#endif
pubkey = SECURITY_lookup_pubkey(cap->issuer);
if (pubkey == NULL)
@@ -462,6 +468,7 @@ int PINT_init_credential(PVFS_credential
return ret;
}
+#if 0
/* nlmills: temporary function to help gather statistics */
static void hash_credential(const PVFS_credential *cred, char *mdstr)
{
@@ -494,6 +501,7 @@ static void hash_credential(const PVFS_c
sprintf(mdstr+2*i, "%02x", (unsigned int)md[i]);
}
}
+#endif
/* PINT_sign_credential
*
@@ -577,8 +585,10 @@ int PINT_sign_credential(PVFS_credential
return -1;
}
+#if 0
hash_credential(cred, mdstr);
gossip_debug(GOSSIP_SECURITY_DEBUG, "CREDSIGN: %s\n", mdstr);
+#endif
return 0;
}
@@ -610,8 +620,10 @@ int PINT_verify_credential(const PVFS_cr
return 0;
}
+#if 0
hash_credential(cred, mdstr);
gossip_debug(GOSSIP_SECURITY_DEBUG, "CREDVRFY: %s\n", mdstr);
+#endif
pubkey = SECURITY_lookup_pubkey(cred->issuer);
if (pubkey == NULL)
More information about the Pvfs2-cvs
mailing list