Lines Matching refs:p

60     kcm_ccache p;  in kcm_ccache_resolve()  local
69 for (p = ccache_head; p != NULL; p = p->next) { in kcm_ccache_resolve()
70 if ((p->flags & KCM_FLAGS_VALID) == 0) in kcm_ccache_resolve()
72 if (strcmp(p->name, name) == 0) { in kcm_ccache_resolve()
79 kcm_retain_ccache(context, p); in kcm_ccache_resolve()
80 *ccache = p; in kcm_ccache_resolve()
93 kcm_ccache p; in kcm_ccache_resolve_by_uuid() local
102 for (p = ccache_head; p != NULL; p = p->next) { in kcm_ccache_resolve_by_uuid()
103 if ((p->flags & KCM_FLAGS_VALID) == 0) in kcm_ccache_resolve_by_uuid()
105 if (memcmp(p->uuid, uuid, sizeof(kcmuuid_t)) == 0) { in kcm_ccache_resolve_by_uuid()
112 kcm_retain_ccache(context, p); in kcm_ccache_resolve_by_uuid()
113 *ccache = p; in kcm_ccache_resolve_by_uuid()
125 kcm_ccache p; in kcm_ccache_get_uuids() local
131 for (p = ccache_head; p != NULL; p = p->next) { in kcm_ccache_get_uuids()
132 if ((p->flags & KCM_FLAGS_VALID) == 0) in kcm_ccache_get_uuids()
134 ret = kcm_access(context, client, opcode, p); in kcm_ccache_get_uuids()
139 krb5_storage_write(sp, p->uuid, sizeof(p->uuid)); in kcm_ccache_get_uuids()
150 kcm_ccache p; in kcm_debug_ccache() local
152 for (p = ccache_head; p != NULL; p = p->next) { in kcm_debug_ccache()
157 if ((p->flags & KCM_FLAGS_VALID) == 0) { in kcm_debug_ccache()
162 KCM_ASSERT_VALID(p); in kcm_debug_ccache()
164 for (k = p->creds; k != NULL; k = k->next) in kcm_debug_ccache()
167 if (p->client != NULL) in kcm_debug_ccache()
168 krb5_unparse_name(context, p->client, &cpn); in kcm_debug_ccache()
169 if (p->server != NULL) in kcm_debug_ccache()
170 krb5_unparse_name(context, p->server, &spn); in kcm_debug_ccache()
174 p, p->name, p->refcnt, p->flags, p->mode, p->uid, p->gid, in kcm_debug_ccache()
229 kcm_ccache *p, ccache; in kcm_ccache_destroy() local
235 for (p = &ccache_head; *p != NULL; p = &(*p)->next) { in kcm_ccache_destroy()
236 if (((*p)->flags & KCM_FLAGS_VALID) == 0) in kcm_ccache_destroy()
238 if (strcmp((*p)->name, name) == 0) { in kcm_ccache_destroy()
246 if ((*p)->refcnt != 1) { in kcm_ccache_destroy()
251 ccache = *p; in kcm_ccache_destroy()
252 *p = (*p)->next; in kcm_ccache_destroy()
267 kcm_ccache slot = NULL, p; in kcm_ccache_alloc() local
276 for (p = ccache_head; p != NULL; p = p->next) { in kcm_ccache_alloc()
277 if (p->flags & KCM_FLAGS_VALID) { in kcm_ccache_alloc()
278 if (strcmp(p->name, name) == 0) { in kcm_ccache_alloc()
283 slot = p; in kcm_ccache_alloc()
662 kcm_ccache p; in kcm_ccache_first_name() local
667 for (p = ccache_head; p != NULL; p = p->next) { in kcm_ccache_first_name()
668 if (kcm_is_same_session(client, p->uid, p->session)) in kcm_ccache_first_name()
671 if (p) in kcm_ccache_first_name()
672 name = strdup(p->name); in kcm_ccache_first_name()