Lines Matching refs:id

69     krb5_ccache id;
75 ret = krb5_cc_default (context, &id);
79 ret = krb5_cc_start_seq_get(context, id, &cursor);
83 while((ret = krb5_cc_next_cred(context, id, &cursor, &creds)) == 0){
91 ret = krb5_cc_end_seq_get(context, id, &cursor);
95 krb5_cc_close(context, id);
154 * Allocate the memory for a `id' and the that function table to
161 krb5_ccache *id)
172 *id = p;
178 * Allocate memory for a new ccache in `id' with operations `ops'
186 krb5_ccache *id)
199 ret = _krb5_cc_allocate(context, ops, id);
208 ret = (*id)->ops->resolve(context, id, residual);
210 free(*id);
211 *id = NULL;
242 * Find and allocate a ccache in `id' from the specification in `residual'.
247 * @param id return pointer to a found credential cache.
249 * @return Return 0 or an error code. In case of an error, id is set
259 krb5_ccache *id)
263 *id = NULL;
272 id);
276 return allocate_ccache (context, &krb5_fcc_ops, name, id);
285 * Generates a new unique ccache of `type` in `id'. If `type' is NULL,
298 const char *hint, krb5_ccache *id)
310 ret = _krb5_cc_allocate(context, ops, id);
313 ret = (*id)->ops->gen_new(context, id);
315 free(*id);
316 *id = NULL;
322 * Return the name of the ccache `id'
330 krb5_ccache id)
332 return id->ops->get_name(context, id);
336 * Return the type of the ccache `id'.
344 krb5_ccache id)
346 return id->ops->prefix;
353 * @param id return pointer to a found credential cache
364 krb5_ccache id,
371 type = krb5_cc_get_type(context, id);
378 name = krb5_cc_get_name(context, id);
394 * Return krb5_cc_ops of a the ccache `id'.
401 krb5_cc_get_ops(krb5_context context, krb5_ccache id)
403 return id->ops;
465 krb5_cc_switch(krb5_context context, krb5_ccache id)
468 _krb5_set_default_cc_name_to_registry(context, id);
471 if (id->ops->set_default == NULL)
474 return (*id->ops->set_default)(context, id);
595 * Open the default ccache in `id'.
605 krb5_ccache *id)
613 return krb5_cc_resolve(context, p, id);
617 * Create a new ccache in `id' for `primary_principal'.
627 krb5_ccache id,
630 return (*id->ops->init)(context, id, primary_principal);
635 * Remove the ccache `id'.
645 krb5_ccache id)
649 ret = (*id->ops->destroy)(context, id);
650 krb5_cc_close (context, id);
655 * Stop using the ccache `id' and free the related resources.
665 krb5_ccache id)
668 ret = (*id->ops->close)(context, id);
669 free(id);
674 * Store `creds' in the ccache `id'.
684 krb5_ccache id,
687 return (*id->ops->store)(context, id, creds);
692 * from `id' in `creds'. 'creds' must be free by the caller using
696 * @param id a Kerberos 5 credential cache
710 krb5_ccache id,
718 if (id->ops->retrieve != NULL) {
719 return (*id->ops->retrieve)(context, id, whichfields,
723 ret = krb5_cc_start_seq_get(context, id, &cursor);
726 while((ret = krb5_cc_next_cred(context, id, &cursor, creds)) == 0){
733 krb5_cc_end_seq_get(context, id, &cursor);
738 * Return the principal of `id' in `principal'.
748 krb5_ccache id,
751 return (*id->ops->get_princ)(context, id, principal);
755 * Start iterating over `id', `cursor' is initialized to the
766 const krb5_ccache id,
769 return (*id->ops->get_first)(context, id, cursor);
773 * Retrieve the next cred pointed to by (`id', `cursor') in `creds'
784 const krb5_ccache id,
788 return (*id->ops->get_next)(context, id, cursor, creds);
800 const krb5_ccache id,
803 return (*id->ops->end_get)(context, id, cursor);
807 * Remove the credential identified by `cred', `which' from `id'.
815 krb5_ccache id,
819 if(id->ops->remove_cred == NULL) {
823 id->ops->prefix);
826 return (*id->ops->remove_cred)(context, id, which, cred);
830 * Set the flags of `id' to `flags'.
838 krb5_ccache id,
841 return (*id->ops->set_flags)(context, id, flags);
845 * Get the flags of `id', store them in `flags'.
852 krb5_ccache id,
937 * Return the version of `id'.
945 const krb5_ccache id)
947 if(id->ops->get_version)
948 return (*id->ops->get_version)(context, id);
1072 * Retrieve the next cache pointed to by (`cursor') in `id'
1077 * @param id next ccache
1089 krb5_ccache *id)
1091 return cursor->ops->get_cache_next(context, cursor->cursor, id);
1116 * `principal' as the default principal. On success, `id' needs to be
1121 * @param id the returned credential cache
1123 * @return On failure, error code is returned and `id' is set to NULL.
1132 krb5_ccache *id)
1138 *id = NULL;
1176 *id = cache;
1219 build_conf_principals(krb5_context context, krb5_ccache id,
1229 ret = krb5_cc_get_principal(context, id, &client);
1282 * @param id the credential cache to store the data for
1292 krb5_cc_set_config(krb5_context context, krb5_ccache id,
1299 ret = build_conf_principals(context, id, principal, name, &cred);
1304 ret = krb5_cc_remove_cred(context, id, 0, &cred);
1317 ret = krb5_cc_store_cred(context, id, &cred);
1329 * @param id the credential cache to store the data for
1340 krb5_cc_get_config(krb5_context context, krb5_ccache id,
1350 ret = build_conf_principals(context, id, principal, name, &mcred);
1354 ret = krb5_cc_retrieve_cred(context, id, 0, &mcred, &cred);
1488 * @param id The credential cache to probe
1499 krb5_ccache id,
1503 return (*id->ops->lastchange)(context, id, mtime);
1527 krb5_ccache id;
1536 while (krb5_cccol_cursor_next(context, cursor, &id) == 0 && id != NULL) {
1538 if (type && strcmp(krb5_cc_get_type(context, id), type) != 0)
1541 ret = krb5_cc_last_change_time(context, id, &t);
1542 krb5_cc_close(context, id);
1563 krb5_ccache id,
1569 ret = krb5_cc_get_config(context, id, NULL, "FriendlyName", &data);
1572 ret = krb5_cc_get_principal(context, id, &principal);
1600 krb5_ccache id,
1608 return krb5_cc_set_config(context, id, NULL, "FriendlyName", &data);
1618 * @param id a credential cache
1627 krb5_cc_get_lifetime(krb5_context context, krb5_ccache id, time_t *t)
1637 ret = krb5_cc_start_seq_get(context, id, &cursor);
1641 while ((ret = krb5_cc_next_cred(context, id, &cursor, &cred)) == 0) {
1651 krb5_cc_end_seq_get(context, id, &cursor);
1662 * @param id a credential cache
1671 krb5_cc_set_kdc_offset(krb5_context context, krb5_ccache id, krb5_deltat offset)
1673 if (id->ops->set_kdc_offset == NULL) {
1678 return (*id->ops->set_kdc_offset)(context, id, offset);
1687 * @param id a credential cache
1696 krb5_cc_get_kdc_offset(krb5_context context, krb5_ccache id, krb5_deltat *offset)
1698 if (id->ops->get_kdc_offset == NULL) {
1702 return (*id->ops->get_kdc_offset)(context, id, offset);
1732 _krb5_set_default_cc_name_to_registry(krb5_context context, krb5_ccache id)
1746 ret = asprintf(&ccname, "%s:%s", krb5_cc_get_type(context, id), krb5_cc_get_name(context, id));