From 6b29ff06f4131cbfe717783013588fcc368c8b0a Mon Sep 17 00:00:00 2001 From: Matt Dainty Date: Fri, 29 Sep 2023 21:30:25 +0100 Subject: [PATCH] fix: Log the two expiry values --- gss/apcera.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gss/apcera.go b/gss/apcera.go index f9cd6ce..4c42554 100644 --- a/gss/apcera.go +++ b/gss/apcera.go @@ -203,7 +203,7 @@ func (c *Client) NegotiateContext(host string) (keyname string, expiry time.Time ) for ok := true; ok; ok = c.lib.LastStatus.Major.ContinueNeeded() { - nctx, _, output, _, _, err := c.lib.InitSecContext( + nctx, _, output, _, endTime, err := c.lib.InitSecContext( c.lib.GSS_C_NO_CREDENTIAL, ctx, // nil initially service, @@ -213,6 +213,8 @@ func (c *Client) NegotiateContext(host string) (keyname string, expiry time.Time c.lib.GSS_C_NO_CHANNEL_BINDINGS, input) + c.logger.Info("endTime", "time", endTime) + ctx = nctx defer func() { @@ -253,6 +255,8 @@ func (c *Client) NegotiateContext(host string) (keyname string, expiry time.Time expiry = time.Unix(int64(tkey.Expiration), 0) + c.logger.Info("expiry", "time", expiry) + c.m.Lock() defer c.m.Unlock()