1 krb5_get_credentials - Get an additional ticket.
2 ==================================================
6 .. c:function:: krb5_error_code krb5_get_credentials(krb5_context context, krb5_flags options, krb5_ccache ccache, krb5_creds * in_creds, krb5_creds ** out_creds)
13 **[in]** **context** - Library context
15 **[in]** **options** - Options
17 **[in]** **ccache** - Credential cache handle
19 **[in]** **in_creds** - Input credentials
21 **[out]** **out_creds** - Output updated credentials
32 - Kerberos error codes
42 Use *ccache* or a TGS exchange to get a service ticket matching *in_creds* .
46 Valid values for *options* are:
48 - :data:`KRB5_GC_CACHED` Search only credential cache for the ticket
51 - :data:`KRB5_GC_USER_USER` Return a user to user authentication ticket
53 *in_creds* must be non-null. *in_creds->client* and *in_creds->server* must be filled in to specify the client and the server respectively. If any authorization data needs to be requested for the service ticket (such as restrictions on how the ticket can be used), specify it in *in_creds->authdata* ; otherwise set *in_creds->authdata* to NULL. The session key type is specified in *in_creds->keyblock.enctype* , if it is nonzero.
57 The expiration date is specified in *in_creds->times.endtime* . The KDC may return tickets with an earlier expiration date. If *in_creds->times.endtime* is set to 0, the latest possible expiration date will be requested.
61 Any returned ticket and intermediate ticket-granting tickets are stored in *ccache* .
65 Use :c:func:`krb5_free_creds()` to free *out_creds* when it is no longer needed.