/freebsd-9.3-release/crypto/heimdal/kcm/ |
H A D | acl.c | 41 kcm_ccache ccache) 48 KCM_ASSERT_VALID(ccache); 78 if (ccache->flags & KCM_FLAGS_OWNER_IS_SYSTEM) { 97 if (client->uid == ccache->uid || CLIENT_IS_ROOT(client)) { 102 } else if (client->gid == ccache->gid || CLIENT_IS_ROOT(client)) { 114 ret = ((ccache->mode & mask) == mask) ? 0 : KRB5_FCC_PERM; 119 client->pid, kcm_op2string(opcode), ccache->name); 128 kcm_ccache ccache, 131 KCM_ASSERT_VALID(ccache); 134 if (ccache 38 kcm_access(krb5_context context, kcm_client *client, kcm_operation opcode, kcm_ccache ccache) argument 126 kcm_chmod(krb5_context context, kcm_client *client, kcm_ccache ccache, uint16_t mode) argument 153 kcm_chown(krb5_context context, kcm_client *client, kcm_ccache ccache, uid_t uid, gid_t gid) argument [all...] |
H A D | cursor.c | 40 kcm_ccache ccache, 48 KCM_ASSERT_VALID(ccache); 50 HEIMDAL_MUTEX_lock(&ccache->mutex); 51 for (p = &ccache->cursors; *p != NULL; p = &(*p)->next) 61 (*p)->key = ++ccache->n_cursor; 62 (*p)->credp = ccache->creds; 70 HEIMDAL_MUTEX_unlock(&ccache->mutex); 78 kcm_ccache ccache, 85 KCM_ASSERT_VALID(ccache); 92 HEIMDAL_MUTEX_lock(&ccache 38 kcm_cursor_new(krb5_context context, pid_t pid, kcm_ccache ccache, uint32_t *cursor) argument 76 kcm_cursor_find(krb5_context context, pid_t pid, kcm_ccache ccache, uint32_t key, kcm_cursor **cursor) argument 113 kcm_cursor_delete(krb5_context context, pid_t pid, kcm_ccache ccache, uint32_t key) argument [all...] |
H A D | renew.c | 39 kcm_ccache ccache, 50 KCM_ASSERT_VALID(ccache); 52 if (ccache->client == NULL) { 58 HEIMDAL_MUTEX_lock(&ccache->mutex); 60 /* Fake up an internal ccache */ 61 kcm_internal_ccache(context, ccache, &ccdata); 64 in.client = ccache->client; 66 if (ccache->server != NULL) { 67 ret = krb5_copy_principal(context, ccache->server, &in.server); 84 if (ccache 38 kcm_ccache_refresh(krb5_context context, kcm_ccache ccache, krb5_creds **credp) argument [all...] |
H A D | client.c | 43 kcm_ccache *ccache) 47 ret = kcm_ccache_resolve(context, name, ccache); 54 ret = kcm_access(context, client, opcode, *ccache); 57 kcm_release_ccache(context, ccache); 69 kcm_ccache ccache; local 71 ret = kcm_ccache_resolve(context, name, &ccache); 78 ret = kcm_access(context, client, KCM_OP_DESTROY, ccache); 80 kcm_release_ccache(context, &ccache); 84 ret = kcm_ccache_destroy(context, ccache->name); 87 kcm_cleanup_events(context, ccache); 39 kcm_ccache_resolve_client(krb5_context context, kcm_client *client, kcm_operation opcode, const char *name, kcm_ccache *ccache) argument 101 kcm_ccache ccache; local [all...] |
H A D | cache.c | 58 kcm_ccache *ccache) 63 *ccache = NULL; 80 *ccache = p; 160 kcm_ccache *ccache) 166 *ccache = NULL; 231 *ccache = slot; 247 kcm_ccache ccache) 252 k = ccache->creds; 261 ccache->creds = NULL; 265 ccache 56 kcm_ccache_resolve_internal(krb5_context context, const char *name, kcm_ccache *ccache) argument 158 kcm_ccache_alloc(krb5_context context, const char *name, kcm_ccache *ccache) argument 246 kcm_ccache_remove_creds_internal(krb5_context context, kcm_ccache ccache) argument 281 kcm_ccache_remove_creds(krb5_context context, kcm_ccache ccache) argument 368 kcm_retain_ccache(krb5_context context, kcm_ccache ccache) argument 381 kcm_release_ccache(krb5_context context, kcm_ccache *ccache) argument 405 kcm_ccache_gen_new(krb5_context context, pid_t pid, uid_t uid, gid_t gid, kcm_ccache *ccache) argument 426 kcm_ccache_new(krb5_context context, const char *name, kcm_ccache *ccache) argument 445 kcm_ccache_resolve(krb5_context context, const char *name, kcm_ccache *ccache) argument 468 kcm_ccache_destroy_if_empty(krb5_context context, kcm_ccache ccache) argument 484 kcm_ccache_store_cred(krb5_context context, kcm_ccache ccache, krb5_creds *creds, int copy) argument 502 kcm_ccache_store_cred_internal(krb5_context context, kcm_ccache ccache, krb5_creds *creds, int copy, krb5_creds **credp) argument 552 kcm_ccache_remove_cred_internal(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds) argument 573 kcm_ccache_remove_cred(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds) argument 590 kcm_ccache_retrieve_cred_internal(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds, krb5_creds **creds) argument 620 kcm_ccache_retrieve_cred(krb5_context context, kcm_ccache ccache, krb5_flags whichfields, const krb5_creds *mcreds, krb5_creds **credp) argument [all...] |
H A D | acquire.c | 38 change_pw_and_update_keytab(krb5_context context, kcm_ccache ccache); 47 kcm_ccache ccache, 60 KCM_ASSERT_VALID(ccache); 63 if (ccache->flags & KCM_FLAGS_USE_CACHED_KEY) { 64 if (ccache->key.keyblock.keyvalue.length == 0) 67 } else if (ccache->flags & KCM_FLAGS_USE_KEYTAB) { 68 if (ccache->key.keytab == NULL) 73 ccache->name); 77 HEIMDAL_MUTEX_lock(&ccache->mutex); 79 /* Fake up an internal ccache */ 46 kcm_ccache_acquire(krb5_context context, kcm_ccache ccache, krb5_creds **credp) argument 167 change_pw(krb5_context context, kcm_ccache ccache, char *cpn, char *newpw) argument 276 get_salt_and_kvno(krb5_context context, kcm_ccache ccache, krb5_enctype *etypes, char *cpn, char *newpw, krb5_salt *salt, unsigned *kvno) argument 344 update_keytab_entry(krb5_context context, kcm_ccache ccache, krb5_enctype etype, char *cpn, char *spn, char *newpw, krb5_salt salt, unsigned kvno) argument 404 update_keytab_entries(krb5_context context, kcm_ccache ccache, krb5_enctype *etypes, char *cpn, char *spn, char *newpw, krb5_salt salt, unsigned kvno) argument 453 change_pw_and_update_keytab(krb5_context context, kcm_ccache ccache) argument [all...] |
H A D | config.c | 154 static int parse_owners(kcm_ccache ccache) argument 196 ccache->uid = uid; 198 ccache->uid = 0; /* geteuid() XXX */ 201 ccache->gid = gid; 203 ccache->gid = 0; /* getegid() XXX */ 218 kcm_ccache ccache; local 226 &ccache); 230 ccache->flags |= KCM_FLAGS_OWNER_IS_SYSTEM; 231 ccache->flags |= KCM_FLAGS_USE_KEYTAB; 233 ret = parse_owners(ccache); [all...] |
H A D | events.c | 84 event->ccache->name); 112 kcm_retain_ccache(context, event->ccache); 113 (*e)->ccache = event->ccache; 164 kcm_release_ccache(context, &(*e)->ccache); 175 kcm_ccache ccache, 180 if (ccache->client == NULL) 184 !krb5_principal_compare(context, ccache->client, newcred->client)) 188 if (ccache->creds == NULL) 195 return krb5_compare_creds(context, whichfields, newcred, &ccache 174 is_primary_credential_p(krb5_context context, kcm_ccache ccache, krb5_creds *newcred) argument 207 kcm_ccache ccache = event->ccache; local 243 kcm_ccache_enqueue_default(krb5_context context, kcm_ccache ccache, krb5_creds *newcred) argument 297 kcm_cleanup_events(krb5_context context, kcm_ccache ccache) argument [all...] |
H A D | protocol.c | 66 kcm_ccache ccache; local 75 name, &ccache); 81 ret = krb5_store_stringz(response, ccache->name); 83 kcm_release_ccache(context, &ccache); 89 kcm_release_ccache(context, &ccache); 137 kcm_ccache ccache; local 157 ret = kcm_ccache_new_client(context, client, name, &ccache); 164 ccache->client = principal; 179 event.ccache = ccache; 236 kcm_ccache ccache; local 295 kcm_ccache ccache; local 383 kcm_ccache ccache; local 426 kcm_ccache ccache; local 474 kcm_ccache ccache; local 536 kcm_ccache ccache; local 586 kcm_ccache ccache; local 643 kcm_ccache ccache; local 691 kcm_ccache ccache; local 744 kcm_ccache ccache; local 797 kcm_ccache ccache; local 889 kcm_ccache ccache; local [all...] |
/freebsd-9.3-release/crypto/heimdal/appl/ftp/ftpd/ |
H A D | klist.c | 70 krb5_ccache ccache, 86 krb5_cc_get_type(context, ccache), 87 krb5_cc_get_name(context, ccache)); 91 ret = krb5_cc_start_seq_get (context, ccache, &cursor); 100 ccache, 111 ret = krb5_cc_end_seq_get (context, ccache, &cursor); 125 krb5_ccache ccache; local 136 ret = krb5_cc_resolve(context, k5ccname, &ccache); 138 ret = krb5_cc_default (context, &ccache); 144 ret = krb5_cc_get_principal (context, ccache, 69 print_tickets(krb5_context context, krb5_ccache ccache, krb5_principal principal) argument [all...] |
H A D | gss_userok.c | 112 krb5_ccache ccache = NULL; local 116 ret = krb5_cc_gen_new(kdata->context, &krb5_fcc_ops, &ccache); 120 ticketfile = krb5_cc_get_name(kdata->context, ccache); 124 ccache); 147 if (ccache) 148 krb5_cc_close(kdata->context, ccache);
|
/freebsd-9.3-release/crypto/heimdal/lib/krb5/ |
H A D | get_in_tkt_with_skey.c | 55 krb5_ccache ccache, 66 ccache, 80 ccache, 49 krb5_get_in_tkt_with_skey(krb5_context context, krb5_flags options, krb5_addresses *addrs, const krb5_enctype *etypes, const krb5_preauthtype *pre_auth_types, const krb5_keyblock *key, krb5_ccache ccache, krb5_creds *creds, krb5_kdc_rep *ret_as_reply) argument
|
H A D | mk_req.c | 44 krb5_ccache ccache, 52 ret = krb5_cc_get_principal(context, ccache, &this_cred.client); 67 ret = krb5_get_credentials (context, 0, ccache, &this_cred, &cred); 89 krb5_ccache ccache, 113 server, in_data, ccache, outbuf); 39 krb5_mk_req_exact(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const krb5_principal server, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument 83 krb5_mk_req(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, const char *service, const char *hostname, krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) argument
|
H A D | verify_init.c | 77 krb5_ccache *ccache, 117 if (ccache && *ccache) 118 local_ccache = *ccache; 191 (ccache == NULL 192 || (ret != 0 && *ccache == NULL))) 195 if (ret == 0 && ccache != NULL && *ccache == NULL) 196 *ccache = local_ccache; 73 krb5_verify_init_creds(krb5_context context, krb5_creds *creds, krb5_principal ap_req_server, krb5_keytab ap_req_keytab, krb5_ccache *ccache, krb5_verify_init_creds_opt *options) argument
|
H A D | sendauth.c | 75 krb5_ccache ccache, 125 if (ccache == NULL) { 126 ret = krb5_cc_default (context, &ccache); 133 ret = krb5_cc_get_principal (context, ccache, &this_client); 136 krb5_cc_close(context, ccache); 149 ret = krb5_get_credentials (context, 0, ccache, in_creds, &creds); 152 krb5_cc_close(context, ccache); 159 krb5_cc_close(context, ccache); 66 krb5_sendauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer p_fd, const char *appl_version, krb5_principal client, krb5_principal server, krb5_flags ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_ccache ccache, krb5_error **ret_error, krb5_ap_rep_enc_part **rep_result, krb5_creds **out_creds) argument
|
H A D | verify_user.c | 41 krb5_ccache ccache, 69 if(ccache == NULL) 72 id = ccache; 78 if(ccache == NULL) 90 * As a side effect, fresh tickets are obtained and stored in `ccache'. 120 krb5_verify_opt_set_ccache(krb5_verify_opt *opt, krb5_ccache ccache) argument 122 opt->ccache = ccache; 179 return verify_common (context, principal, OPT(ccache, NULL), 226 krb5_ccache ccache, 39 verify_common(krb5_context context, krb5_principal principal, krb5_ccache ccache, krb5_keytab keytab, krb5_boolean secure, const char *service, krb5_creds cred) argument 224 krb5_verify_user(krb5_context context, krb5_principal principal, krb5_ccache ccache, const char *password, krb5_boolean secure, const char *service) argument 248 krb5_verify_user_lrealm(krb5_context context, krb5_principal principal, krb5_ccache ccache, const char *password, krb5_boolean secure, const char *service) argument [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/gssapi/krb5/ |
H A D | release_cred.c | 63 if (cred->ccache != NULL) { 65 ops = krb5_cc_get_ops(context, cred->ccache); 67 krb5_cc_destroy(context, cred->ccache); 69 krb5_cc_close(context, cred->ccache);
|
H A D | inquire_cred_by_oid.c | 58 if (cred->ccache == NULL) { 64 ret = krb5_cc_get_full_name(context, cred->ccache, &str);
|
H A D | acquire_cred.c | 121 krb5_ccache ccache; local 126 ccache = NULL; 138 &ccache); 140 if (ccache == NULL) { 141 kret = krb5_cc_default(context, &ccache); 145 kret = krb5_cc_get_principal(context, ccache, 149 krb5_cc_destroy(context, ccache); 150 ccache = NULL; 186 &ccache); 189 kret = krb5_cc_initialize(context, ccache, cre [all...] |
H A D | add_cred.c | 112 handle->ccache = NULL; 158 if (cred->ccache) { 164 type = krb5_cc_get_type(context, cred->ccache); 172 &handle->ccache); 178 ret = krb5_cc_copy_cache(context, cred->ccache, 179 handle->ccache); 186 name = krb5_cc_get_name(context, cred->ccache); 199 &handle->ccache); 243 if (handle->ccache) 244 krb5_cc_destroy(context, handle->ccache); [all...] |
/freebsd-9.3-release/crypto/heimdal/lib/kadm5/ |
H A D | client_glue.c | 116 krb5_ccache ccache, 124 ccache, 135 krb5_ccache ccache, 144 ccache, 115 kadm5_init_with_creds(const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument 133 kadm5_init_with_creds_ctx(krb5_context context, const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
|
H A D | server_glue.c | 116 krb5_ccache ccache, 124 ccache, 135 krb5_ccache ccache, 144 ccache, 115 kadm5_init_with_creds(const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument 133 kadm5_init_with_creds_ctx(krb5_context context, const char *client_name, krb5_ccache ccache, const char *service_name, kadm5_config_params *realm_params, unsigned long struct_version, unsigned long api_version, void **server_handle) argument
|
/freebsd-9.3-release/crypto/openssh/ |
H A D | gss-serv-krb5.c | 119 krb5_ccache ccache; local 137 NULL, &ccache)) != 0) { 141 if ((problem = krb5_cc_gen_new(krb_context, &krb5_fcc_ops, &ccache))) { 149 if ((problem = ssh_krb5_cc_gen(krb_context, &ccache))) { 165 if ((problem = krb5_cc_initialize(krb_context, ccache, princ))) { 170 krb5_cc_destroy(krb_context, ccache); 177 client->creds, ccache))) { 179 krb5_cc_destroy(krb_context, ccache); 183 client->store.filename = xstrdup(krb5_cc_get_name(krb_context, ccache)); 194 krb5_cc_close(krb_context, ccache); [all...] |
H A D | auth-krb5.c | 79 krb5_ccache ccache = NULL; local 102 krb5_mcc_ops.prefix, NULL, &ccache); 104 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_mcc_ops, &ccache); 109 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, 117 ccache, password, 1, NULL); 134 problem = krb5_cc_copy_cache(authctxt->krb5_ctx, ccache, 136 krb5_cc_destroy(authctxt->krb5_ctx, ccache); 137 ccache = NULL; 199 if (ccache) 200 krb5_cc_destroy(authctxt->krb5_ctx, ccache); 242 ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) argument [all...] |
/freebsd-9.3-release/crypto/heimdal/kuser/ |
H A D | kdestroy.c | 70 krb5_ccache ccache; local 107 &ccache); 120 ret = krb5_cc_remove_cred(context, ccache, 0, &mcred); 125 krb5_cc_close(context, ccache); 131 ret = krb5_cc_destroy (context, ccache);
|