Skip to content

Commit

Permalink
fix: Log the two expiry values
Browse files Browse the repository at this point in the history
  • Loading branch information
bodgit committed Sep 29, 2023
1 parent 5e5ddfb commit 6b29ff0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gss/apcera.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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() {
Expand Down Expand Up @@ -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()

Expand Down

0 comments on commit 6b29ff0

Please sign in to comment.