X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=utils%2Fgssd%2Fcontext_heimdal.c;h=ddf064d3974d537714c3d0ccb4f7ac3f4d3560eb;hb=2dd083c5bdb5b38729b46dc65c886c77aa5a82b9;hp=6fb8fbdb35da550e3a562f4d66e2268d006f25ab;hpb=cdbdd5f613dc65748717e136243adf46d0c3fe31;p=nfs-utils.git diff --git a/utils/gssd/context_heimdal.c b/utils/gssd/context_heimdal.c index 6fb8fbd..ddf064d 100644 --- a/utils/gssd/context_heimdal.c +++ b/utils/gssd/context_heimdal.c @@ -28,7 +28,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "config.h" +#ifdef HAVE_CONFIG_H +#include +#endif /* HAVE_CONFIG_H */ #ifndef HAVE_LUCID_CONTEXT_SUPPORT #ifdef HAVE_HEIMDAL @@ -198,7 +200,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 +241,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;