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