Lines Matching defs:auth_context

146 krb5_rd_req_decoded_opt(krb5_context context, krb5_auth_context *auth_context,
184 if ((*auth_context)->keyblock) { /* User to User authentication */
185 if ((retval = krb5_decrypt_tkt_part(context, (*auth_context)->keyblock,
188 krb5_free_keyblock(context, (*auth_context)->keyblock);
189 (*auth_context)->keyblock = NULL;
199 &((*auth_context)->authentp),
203 if (!krb5_principal_compare(context, (*auth_context)->authentp->client,
209 if ((*auth_context)->remote_addr &&
210 !krb5_address_search(context, (*auth_context)->remote_addr,
286 if ((*auth_context)->rcache) {
291 tktauthent.authenticator = (*auth_context)->authentp;
293 retval = krb5_rc_store(context, (*auth_context)->rcache, &rep);
311 (*auth_context)->authentp->ctime,
353 if ((*auth_context)->auth_context_flags & KRB5_AUTH_CONTEXT_PERMIT_ALL) {
357 } else if ((*auth_context)->permitted_etypes == NULL) {
364 (((*auth_context)->authentp->subkey) &&
366 etype = (*auth_context)->authentp->subkey->enctype))) {
377 /* check against the set in the auth_context */
380 for (i=0; (*auth_context)->permitted_etypes[i]; i++)
381 if ((*auth_context)->permitted_etypes[i] ==
384 if (!(*auth_context)->permitted_etypes[i]) {
396 for (i=0; (*auth_context)->permitted_etypes[i]; i++)
397 if ((*auth_context)->permitted_etypes[i] ==
400 if (!(*auth_context)->permitted_etypes[i]) {
412 if ((*auth_context)->authentp->subkey) {
413 for (i=0; (*auth_context)->permitted_etypes[i]; i++)
414 if ((*auth_context)->permitted_etypes[i] ==
415 (*auth_context)->authentp->subkey->enctype)
417 if (!(*auth_context)->permitted_etypes[i]) {
420 if (krb5_enctype_to_string((*auth_context)->authentp->subkey->enctype,
432 (*auth_context)->remote_seq_number = (*auth_context)->authentp->seq_number;
433 if ((*auth_context)->authentp->subkey) {
435 if ((*auth_context)->recv_subkey != NULL) {
436 krb5_free_keyblock(context, (*auth_context)->recv_subkey);
437 (*auth_context)->recv_subkey = NULL;
441 (*auth_context)->authentp->subkey,
442 &((*auth_context)->recv_subkey))))
445 if ((*auth_context)->send_subkey != NULL) {
446 krb5_free_keyblock(context, (*auth_context)->send_subkey);
447 (*auth_context)->send_subkey = NULL;
450 retval = krb5_copy_keyblock(context, (*auth_context)->authentp->subkey,
451 &((*auth_context)->send_subkey));
453 krb5_free_keyblock(context, (*auth_context)->recv_subkey);
454 (*auth_context)->recv_subkey = NULL;
458 (*auth_context)->recv_subkey = 0;
459 (*auth_context)->send_subkey = 0;
462 if ((*auth_context)->keyblock != NULL) {
463 krb5_free_keyblock(context, (*auth_context)->keyblock);
464 (*auth_context)->keyblock = NULL;
467 &((*auth_context)->keyblock))))
476 (*auth_context)->remote_seq_number) {
477 (*auth_context)->local_seq_number ^=
478 (*auth_context)->remote_seq_number;
502 krb5_rd_req_decoded(krb5_context context, krb5_auth_context *auth_context,
508 retval = krb5_rd_req_decoded_opt(context, auth_context,
517 krb5_auth_context *auth_context,
523 retval = krb5_rd_req_decoded_opt(context, auth_context,