[Pvfs2-cvs] commit by nlmills in pvfs2/src/server: get-cred.sm

CVS commit program cvs at parl.clemson.edu
Wed Dec 3 21:22:12 EST 2008


Update of /anoncvs/pvfs2/src/server
In directory parlweb1:/tmp/cvs-serv6696/src/server

Modified Files:
      Tag: cu-security-branch
	get-cred.sm 
Log Message:
implemented credential signing


Index: get-cred.sm
===================================================================
RCS file: /anoncvs/pvfs2/src/server/Attic/get-cred.sm,v
diff -p -u -r1.1.2.3 -r1.1.2.4
--- get-cred.sm	4 Dec 2008 00:09:15 -0000	1.1.2.3
+++ get-cred.sm	4 Dec 2008 02:22:12 -0000	1.1.2.4
@@ -155,8 +155,14 @@ static PINT_sm_action get_cred_sign_cred
                                          job_status_s *js_p)
 {
     struct PINT_server_op *s_op = PINT_sm_frame(smcb, PINT_FRAME_CURRENT);
+    int ret;
 
-    /* TODO: sign the credential */
+    ret = PINT_sign_credential(&s_op->u.getcred.credential);
+    if (ret == -1)
+    {
+        /* TODO: log error message */
+        js_p->error_code = -PVFS_EINVAL;
+    }
 
     return SM_ACTION_COMPLETE;
 }



More information about the Pvfs2-cvs mailing list