diff options
author | Kevin Coffman <kwc@citi.umich.edu> | 2008-12-11 11:39:38 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2008-12-11 11:39:38 -0500 |
commit | a4f1386224310b6797f083826fc4b6751e91f9b6 (patch) | |
tree | 74bd0ef85b46b838d7c908c583f3312d86c9ba24 /utils/gssd/context_heimdal.c | |
parent | 8a5ef964599438ea45f849a0cd1431a0c26bf054 (diff) | |
download | nfs-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_heimdal.c')
-rw-r--r-- | utils/gssd/context_heimdal.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/gssd/context_heimdal.c b/utils/gssd/context_heimdal.c index 6fb8fbd..fc241e3 100644 --- a/utils/gssd/context_heimdal.c +++ b/utils/gssd/context_heimdal.c @@ -198,7 +198,7 @@ int write_heimdal_seq_key(char **p, char *end, gss_ctx_id_t ctx) */ int -serialize_krb5_ctx(gss_ctx_id_t ctx, gss_buffer_desc *buf) +serialize_krb5_ctx(gss_ctx_id_t ctx, gss_buffer_desc *buf, int32_t *endtime) { char *p, *end; @@ -239,6 +239,9 @@ serialize_krb5_ctx(gss_ctx_id_t ctx, gss_buffer_desc *buf) /* endtime */ if (WRITE_BYTES(&p, end, ctx->lifetime)) goto out_err; + if (endtime) + *endtime = ctx->lifetime; + /* seq_send */ if (WRITE_BYTES(&p, end, ctx->auth_context->local_seqnumber)) goto out_err; |