How can you programmatically tell when a Kerberos credential will expire?
===

When a user does a kinit, the /tmp/krb5cc_* credential cache is created.  On Linux, how can I tell when it will expire?  (I am programming in either C or C++.)