summaryrefslogtreecommitdiffstats
path: root/utils/gssd/context.c
diff options
context:
space:
mode:
authorKevin Coffman <kwc@citi.umich.edu>2008-12-11 11:39:38 -0500
committerSteve Dickson <steved@redhat.com>2008-12-11 11:39:38 -0500
commita4f1386224310b6797f083826fc4b6751e91f9b6 (patch)
tree74bd0ef85b46b838d7c908c583f3312d86c9ba24 /utils/gssd/context.c
parent8a5ef964599438ea45f849a0cd1431a0c26bf054 (diff)
downloadnfs-utils-a4f1386224310b6797f083826fc4b6751e91f9b6.tar.gz
nfs-utils-a4f1386224310b6797f083826fc4b6751e91f9b6.tar.xz
nfs-utils-a4f1386224310b6797f083826fc4b6751e91f9b6.zip
gssd/svcgssd: add support to retrieve actual context expiration
Add some plumbing so that the context expiration can be returned while serializing the information. Later patch(es) will actually get the expiration and pass it down to the kernel. Signed-off-by: Kevin Coffman <kwc@citi.umich.edu> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/gssd/context.c')
-rw-r--r--utils/gssd/context.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/gssd/context.c b/utils/gssd/context.c
index 4bab3e7..0ca7079 100644
--- a/utils/gssd/context.c
+++ b/utils/gssd/context.c
@@ -43,13 +43,14 @@
int
serialize_context_for_kernel(gss_ctx_id_t ctx,
gss_buffer_desc *buf,
- gss_OID mech)
+ gss_OID mech,
+ int32_t *endtime)
{
if (g_OID_equal(&krb5oid, mech))
- return serialize_krb5_ctx(ctx, buf);
+ return serialize_krb5_ctx(ctx, buf, endtime);
#ifdef HAVE_SPKM3_H
else if (g_OID_equal(&spkm3oid, mech))
- return serialize_spkm3_ctx(ctx, buf);
+ return serialize_spkm3_ctx(ctx, buf, endtime);
#endif
else {
printerr(0, "ERROR: attempting to serialize context with "