---
name: "gss_context_time"
section: "3"
platform: "linux"
package: "gss-man"
version: "1.0.4-4"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/gss_context_time"
---

# gss\_context\_time(3)

API function

## NAME

gss\_context\_time - API function

## SYNOPSIS

**#include \<gss.h\>**

**OM\_uint32 gss\_context\_time(OM\_uint32 \*** *minor\_status***, const gss\_ctx\_id\_t** *context\_handle***, OM\_uint32 \*** *time\_rec***);**

## ARGUMENTS

- OM\_uint32 \* minor\_status

  (Integer, modify) Implementation specific status\
     code.

- const gss\_ctx\_id\_t context\_handle

  (gss\_ctx\_id\_t, read) Identifies the context to be\
     interrogated.

- OM\_uint32 \* time\_rec

  (Integer, modify) Number of seconds that the context\
     will remain valid.  If the context has already expired, zero will\
     be returned.

## DESCRIPTION

Determines the number of seconds for which the specified context will remain valid.

## RETURN VALUE

\`GSS\_S\_COMPLETE\`: Successful completion.

\`GSS\_S\_CONTEXT\_EXPIRED\`: The context has already expired.

\`GSS\_S\_NO\_CONTEXT\`: The context\_handle parameter did not identify a valid context

## REPORTING BUGS

Report bugs to \<bug-gss@gnu.org\>. GNU Generic Security Service home page: http://www.gnu.org/software/gss/ General help using GNU software: http://www.gnu.org/gethelp/

## COPYRIGHT

Copyright © 2003-2022 Simon Josefsson.\
 Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.

## SEE ALSO

The full documentation for **gss** is maintained as a Texinfo manual.  If the **info** and **gss** programs are properly installed at your site, the command

-

  **info gss**

should give you access to the complete manual.
