| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
| ser_cc.c | 4 * lib/krb5/ccache/ser_rc.c 67 krb5_ccache ccache; 71 if ((ccache = (krb5_ccache) arg)) { 75 * krb5_int32 for length of ccache name. 79 if (ccache->ops && ccache->ops->prefix) 80 required += (strlen(ccache->ops->prefix)+1); 83 * The ccache name is formed as follows: 86 required += strlen(krb5_cc_get_name(kcontext, ccache)); 102 krb5_ccache ccache; 66 krb5_ccache ccache; local 100 krb5_ccache ccache; local 160 krb5_ccache ccache; local [all...] |
| ccdefault.c | 2 * lib/krb5/ccache/ccdefault.c 46 krb5_cc_default(krb5_context context, krb5_ccache *ccache) 55 return krb5_cc_resolve(context, krb5_cc_default_name(context), ccache); 58 /* This is the internal function which opens the default ccache. On platforms supporting 66 krb5int_cc_default(krb5_context context, krb5_ccache *ccache) 113 return krb5_cc_default (context, ccache);
|
| cc_memory.c | 8 * lib/krb5/ccache/cc_memory.c 409 * Finishes sequential processing of the file credentials ccache id, 534 /* Utility routine: Creates a random memory ccache name. 536 * random ccache names in a fixed size buffer. */ 655 /* store: Save away creds in the ccache. */ 725 krb5_ccache *ccache) 730 *ccache = NULL; 735 *ccache = malloc(sizeof(**ccache)); 736 if (*ccache == NULL [all...] |
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/common/ |
| store_forw_creds.h | 41 krb5_ccache *ccache);
|
| store_forw_creds.c | 40 * Store the forwarded creds in the user's local ccache and register 48 krb5_ccache *ccache) 56 *ccache = NULL; 67 if ((retval = krb5_cc_resolve(context, ccname, ccache)) != 0) { 73 if ((retval = krb5_cc_initialize(context, *ccache, 80 if ((retval = krb5_cc_store_cred(context, *ccache, *creds)) != 0) { 86 if ((retval = krb5_cc_close(context, *ccache)) != 0)
|
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
| mk_req.c | 45 such credentials, and they are stored in ccache. 61 krb5_data *in_data, krb5_ccache ccache, krb5_data *outbuf) 79 if ((retval = krb5_cc_get_principal(context, ccache, &creds.client)) != 0) 84 ccache, &creds, &credsp)) != 0)
|
| get_creds.c | 47 stored in ccache. 132 krb5_ccache ccache, krb5_creds *in_creds, 158 if ((retval = krb5_cc_retrieve_cred(context, ccache, fields, &mcreds, 177 retval = krb5_get_cred_from_kdc(context, ccache, ncreds, out_creds, &tgts); 183 if ((rv2 = krb5_cc_store_cred(context, ccache, tgts[i])) != 0) { 194 * handle the case where there is no TGT in the ccache and the 214 retval = krb5_cc_store_cred(context, ccache, *out_creds); 227 krb5_ccache ccache, krb5_creds *in_creds, 236 retval = krb5_get_cred_from_kdc_validate(context, ccache, 240 retval = krb5_get_cred_from_kdc_renew(context, ccache, [all...] |
| vfy_increds.c | 77 krb5_ccache ccache; local 87 ccache = NULL; 158 in a memory ccache, then call the library. Later, we'll copy 159 everything except the initial cred into the ccache we return to 163 /* insert the initial cred into the ccache */ 165 if ((ret = krb5_cc_resolve(context, "MEMORY:rd_req", &ccache))) 168 if ((ret = krb5_cc_initialize(context, ccache, creds->client)) != NULL) 172 if ((ret = krb5_cc_store_cred(context, ccache, creds)) != NULL) 183 if ((ret = krb5_get_credentials(context, 0, ccache, &in_creds, 208 if (ccache_arg && ccache) { [all...] |
| sendauth.c | 47 krb5_sendauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer fd, 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 **error, krb5_ap_rep_enc_part **rep_result, krb5_creds **out_creds) 102 if (ccache) 103 use_ccache = ccache; 243 if (!ccache && use_ccache)
|
| gc_frm_kdc.c | 47 * Ring buffer abstraction for TGTs returned from a ccache; avoids 88 krb5_ccache ccache; member in struct:tr_state 156 * Flags for ccache lookups of cross-realm TGTs. 388 /* Match realm, unlike other ccache retrievals here. */ 389 retval = krb5_cc_retrieve_cred(ts->ctx, ts->ccache, 403 * Attempt to retrieve desired NXT_TGT from ccache. Point NXT_TGT to 423 retval = krb5_cc_retrieve_cred(ts->ctx, ts->ccache, RETR_FLAGS, 638 /* Don't waste time retrying ccache for direct path. */ 646 /* Not in the ccache, so talk to a KDC. */ 759 krb5_ccache ccache, [all...] |
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
| acquire_cred.c | 221 If successful, set the ccache-specific fields in cred. 233 krb5_ccache ccache; local 241 cred->ccache = NULL; 243 /* load the GSS ccache name into the kg_context */ 248 /* check to see if the caller provided a ccache name if so 269 err = krb5_cc_resolve (context, ccache_name, &ccache); 297 if ((code = krb5_cc_resolve (context, ccname, &ccache))) { 304 if ((code = krb5int_cc_default(context, &ccache))) { 315 if ((code = krb5int_cc_default(context, &ccache))) { 329 if ((code = krb5_cc_set_flags(context, ccache, flags))) [all...] |
| rel_cred.c | 60 if (cred->ccache) { 63 * If the ccache is a MEMORY ccache then this credential handle 70 if (strcmp("MEMORY", krb5_cc_get_type(context, cred->ccache)) == 0) 71 code1 = krb5_cc_destroy(context, cred->ccache); 73 code1 = krb5_cc_close(context, cred->ccache);
|
| copy_ccache.c | 42 code = krb5_cc_start_seq_get(context, k5creds->ccache, &cursor); 49 while (!code && !krb5_cc_next_cred(context, k5creds->ccache, &cursor, &creds)) 51 krb5_cc_end_seq_get(context, k5creds->ccache, &cursor);
|
| acquire_cred_with_pw.c | 125 cred->ccache = NULL; 159 /* Got a TGT, now make a MEMORY ccache, stuff in the TGT */ 165 * Weirdness: there's no way to gen a new ccache without first 171 * ccache ops from the first ccache but generates a new one. If 172 * we don't close that first ccache it will leak. 188 cred->ccache = ccache2; 305 cred->ccache = NULL; 362 if (cred->ccache) 363 (void) krb5_cc_close(context, cred->ccache); [all...] |
| add_cred.c | 272 if (cred->ccache) { 273 cctype = krb5_cc_get_type(context, cred->ccache); 274 ccname = krb5_cc_get_name(context, cred->ccache); 295 code = krb5_cc_resolve(context, ccboth, &new_cred->ccache); 310 new_cred->ccache = NULL; 316 if (new_cred->ccache) 317 krb5_cc_close(context, new_cred->ccache);
|
| store_cred.c | 48 krb5_ccache ccache = NULL; /* current [file] ccache */ local 49 krb5_principal ccprinc = NULL; /* default princ of current ccache */ 55 /* Get current ccache -- respect KRB5CCNAME, or use OS default */ 56 if ((code = krb5_cc_default(ct, &ccache))) { 64 * a) take all the initial tickets from the current ccache for 66 * b) copy them to a tmp MEMORY ccache 67 * c) copy the given cred's tickets to that same tmp ccache 68 * d) initialize the current ccache with either the same default 70 * default princ (dflt) and copy the tmp ccache's creds to it [all...] |
| init_sec_context.c | 107 * ccache. 132 code = krb5_get_credentials(context, 0, cred->ccache, 190 data->cred->ccache, 1, 1362 krb5_ccache ccache = NULL; local 1543 krb5_ccache ccache = NULL; local [all...] |
| /onnv/onnv-gate/usr/src/lib/pam_modules/krb5/ |
| utils.h | 48 krb5_ccache ccache; /* file credential cache */ member in struct:__anon4382
|
| /onnv/onnv-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/ |
| val_cred.c | 56 if (cred->ccache) { 57 if ((code = krb5_cc_get_principal(context, cred->ccache, &princ))) {
|
| /onnv/onnv-gate/usr/src/cmd/ssh/sshd/ |
| auth-krb5.c | 175 krb5_ccache ccache = NULL; local 185 problem = krb5_cc_gen_new(authctxt->krb5_ctx, &krb5_fcc_ops, &ccache); 205 problem = krb5_cc_resolve(authctxt->krb5_ctx, ccname, &ccache); 211 problem = krb5_cc_initialize(authctxt->krb5_ctx, ccache, 218 ccache, tgt); 226 problem = krb5_cc_store_cred(authctxt->krb5_ctx, ccache, *creds); 231 authctxt->krb5_fwd_ccache = ccache; 232 ccache = NULL; 251 if (ccache) 252 krb5_cc_destroy(authctxt->krb5_ctx, ccache); [all...] |
| /onnv/onnv-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| kuserok.c | 91 krb5_ccache ccache = NULL; local 130 retval = krb5_cc_default(kcontext, &ccache); 139 retval = krb5_cc_retrieve_cred(kcontext, ccache, 153 retval = krb5_cc_destroy(kcontext, ccache); 165 retval = krb5_cc_resolve(kcontext, ccache_name_buf, &ccache); 172 retval = krb5_cc_initialize(kcontext, ccache, client); 179 retval = krb5_cc_store_cred(kcontext, ccache, &save_v5creds);
|
| /onnv/onnv-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/ |
| kerberos5.c | 199 krb5_ccache ccache; local 218 if ((retval = krb5_cc_default(telnet_context, &ccache))) { 221 "could not get default ccache\r\n")); 257 if ((retval = krb5_cc_get_principal(telnet_context, ccache, 306 ccache, &creds, &new_creds))) { 621 krb5_ccache ccache; local 628 if ((retval = krb5_cc_default(telnet_context, &ccache))) { 631 "Kerberos V5: could not get default ccache - %s\r\n"), 636 retval = krb5_cc_get_principal(telnet_context, ccache, &client); 666 server, ccache, forward_flags & OPTS_FORWARDABLE_CREDS [all...] |
| /onnv/onnv-gate/usr/src/lib/krb5/kadm5/clnt/ |
| client_init.c | 91 krb5_ccache ccache, 99 return _kadm5_init_any(client_name, INIT_CREDS, NULL, ccache, 589 krb5_ccache ccache = NULL; local 719 * create a ccache to store them in. If INIT_CREDS, use the 720 * ccache we were provided instead. 790 ccache = ccache_in; 792 malloc(strlen(krb5_cc_get_type(handle->context, ccache)) + 793 strlen(krb5_cc_get_name(handle->context, ccache)) + 2); 799 krb5_cc_get_type(handle->context, ccache), 800 krb5_cc_get_name(handle->context, ccache)); 1009 krb5_ccache ccache = NULL; local [all...] |
| /onnv/onnv-gate/usr/src/cmd/krb5/kadmin/kpasswd/ |
| kpasswd.c | 108 krb5_ccache ccache = NULL; local 141 code = krb5_cc_default(context, &ccache); 145 code = krb5_cc_get_principal(context, ccache, &princ); 148 (void) krb5_cc_close(context, ccache); 161 /* ever another ccache type (or if the error codes are ever */
|
| /onnv/onnv-gate/usr/src/cmd/krb5/slave/ |
| kprop.c | 69 krb5_ccache ccache; /* Credentials cache which we'll be using */ variable 280 retval = krb5_cc_resolve(context, buf, &ccache); 287 retval = krb5_cc_initialize(context, ccache, my_principal); 305 (void) krb5_cc_destroy(context, ccache); 323 (void) krb5_cc_destroy(context, ccache); 330 (void) krb5_cc_destroy(context, ccache); 339 (void) krb5_cc_destroy(context, ccache); 350 (void) krb5_cc_destroy(context, ccache); 361 retval = krb5_cc_destroy(context, ccache);
|