Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Log the two expiry values #116

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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