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()