| /src/crypto/external/bsd/heimdal/dist/lib/krb5/ |
| auth_context.c | 1 /* $NetBSD: auth_context.c,v 1.5 2023/06/19 21:41:44 christos Exp $ */ 42 * @param auth_context The authentication context to be initialized. 50 krb5_auth_context *auth_context) 73 *auth_context = p; 82 * @param auth_context The authentication context to be deallocated. 88 krb5_auth_context auth_context) 90 if (auth_context != NULL) { 91 krb5_free_authenticator(context, &auth_context->authenticator); 92 if(auth_context->local_address){ 93 free_HostAddress(auth_context->local_address) [all...] |
| mk_safe.c | 40 krb5_auth_context auth_context, 54 if ((auth_context->flags & 59 if (auth_context->local_subkey) 60 key = auth_context->local_subkey; 61 else if (auth_context->remote_subkey) 62 key = auth_context->remote_subkey; 64 key = auth_context->keyblock; 75 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { 83 if (auth_context->flags & KRB5_AUTH_CONTEXT_RET_TIME) { 88 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) [all...] |
| mk_rep.c | 40 krb5_auth_context auth_context, 56 body.ctime = auth_context->authenticator->ctime; 57 body.cusec = auth_context->authenticator->cusec; 58 if (auth_context->flags & KRB5_AUTH_CONTEXT_USE_SUBKEY) { 59 if (auth_context->local_subkey == NULL) { 61 auth_context, 62 auth_context->keyblock); 68 ret = krb5_copy_keyblock(context, auth_context->local_subkey, 76 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) { 77 if(auth_context->local_seqnumber == 0 [all...] |
| rd_safe.c | 40 krb5_auth_context auth_context, 62 if (auth_context->remote_subkey) 63 key = auth_context->remote_subkey; 64 else if (auth_context->local_subkey) 65 key = auth_context->local_subkey; 67 key = auth_context->keyblock; 87 krb5_auth_context auth_context, 98 if ((auth_context->flags & 135 && auth_context->remote_address 137 auth_context->remote_address [all...] |
| mk_priv.c | 40 krb5_auth_context auth_context, 55 if ((auth_context->flags & 60 if (auth_context->local_subkey) 61 key = auth_context->local_subkey; 62 else if (auth_context->remote_subkey) 63 key = auth_context->remote_subkey; 65 key = auth_context->keyblock; 73 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { 81 if (auth_context->flags & KRB5_AUTH_CONTEXT_RET_TIME) { 86 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) [all...] |
| rd_priv.c | 40 krb5_auth_context auth_context, 55 if ((auth_context->flags & 84 if (auth_context->remote_subkey) 85 key = auth_context->remote_subkey; 86 else if (auth_context->local_subkey) 87 key = auth_context->local_subkey; 89 key = auth_context->keyblock; 113 && auth_context->remote_address 115 auth_context->remote_address, 125 && auth_context->local_addres [all...] |
| mk_req.c | 40 krb5_auth_context *auth_context, 64 if (auth_context && *auth_context && (*auth_context)->keytype) 65 this_cred.session.keytype = (*auth_context)->keytype; 73 auth_context, 84 krb5_auth_context *auth_context, 112 ret = krb5_mk_req_exact (context, auth_context, ap_req_options,
|
| rd_rep.c | 40 krb5_auth_context auth_context, 67 ret = krb5_crypto_init(context, auth_context->keyblock, 0, &crypto); 90 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { 91 if ((*repl)->ctime != auth_context->authenticator->ctime || 92 (*repl)->cusec != auth_context->authenticator->cusec) 100 krb5_auth_con_setremoteseqnumber(context, auth_context, 103 krb5_auth_con_setremotesubkey(context, auth_context, (*repl)->subkey);
|
| mk_req_ext.c | 40 krb5_auth_context *auth_context, 54 if(auth_context) { 55 if(*auth_context == NULL) 56 ret = krb5_auth_con_init(context, auth_context); 59 ac = *auth_context; 143 if(auth_context == NULL) 150 krb5_auth_context *auth_context, 157 auth_context,
|
| rd_cred.c | 59 krb5_auth_context auth_context, 75 if ((auth_context->flags & 110 * auth_context. 113 if (auth_context->remote_subkey) { 114 ret = krb5_crypto_init(context, auth_context->remote_subkey, 132 if (auth_context->remote_subkey == NULL || ret == KRB5KRB_AP_ERR_BAD_INTEGRITY) 135 ret = krb5_crypto_init(context, auth_context->keyblock, 169 && auth_context->remote_address 170 && auth_context->remote_port) { 174 auth_context->remote_address [all...] |
| build_auth.c | 105 krb5_auth_context auth_context, 131 ret = krb5_auth_con_getlocalsubkey(context, auth_context, &auth.subkey); 135 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) { 136 if(auth_context->local_seqnumber == 0) 139 &auth_context->local_seqnumber); 145 *auth.seq_number = auth_context->local_seqnumber; 171 /* XXX - Copy more to auth_context? */ 173 auth_context->authenticator->ctime = auth.ctime; 174 auth_context->authenticator->cusec = auth.cusec;
|
| recvauth.c | 52 * @param auth_context authentication context of the peer. 68 krb5_auth_context *auth_context, 76 return krb5_recvauth_match_version(context, auth_context, p_fd, 89 krb5_auth_context *auth_context, 110 * If there are no addresses in auth_context, get them from `fd'. 113 if (*auth_context == NULL) { 114 ret = krb5_auth_con_init (context, auth_context); 120 *auth_context, 207 auth_context, 250 ret = krb5_mk_rep (context, *auth_context, &data) [all...] |
| verify_init.c | 87 krb5_auth_context auth_context = NULL; local 161 &auth_context, 167 krb5_auth_con_free (context, auth_context); 168 auth_context = NULL; 174 &auth_context, 184 if (auth_context) 185 krb5_auth_con_free (context, auth_context);
|
| get_for_creds.c | 91 * @param auth_context the auth context with the key to encrypt the out_data. 106 krb5_auth_context auth_context, 151 auth_context, 174 * @param auth_context the auth context with the key to encrypt the out_data. 189 krb5_auth_context auth_context, 286 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) { 309 if (auth_context->local_address && auth_context->local_port && paddrs) { 313 auth_context->local_address, 314 auth_context->local_port) [all...] |
| changepw.c | 71 krb5_auth_context *auth_context, 98 auth_context, 112 *auth_context, 163 krb5_auth_context *auth_context, 185 auth_context, 214 *auth_context, 269 krb5_auth_context auth_context, 404 auth_context, 413 auth_context, 521 krb5_auth_context auth_context = NULL local [all...] |
| rd_req.c | 174 krb5_auth_context auth_context, 180 ret = _krb5_get_ad(context, auth_context->authenticator->authorization_data, NULL, KRB5_AUTHDATA_GSS_API_ETYPE_NEGOTIATION, &data); 278 krb5_auth_context *auth_context, 287 auth_context, 299 krb5_auth_context *auth_context, 318 if (auth_context && *auth_context) { 319 ac = *auth_context; 462 if (auth_context) { 463 if (*auth_context == NULL [all...] |
| sendauth.c | 69 * @param auth_context Authentication context of the peer. 90 krb5_auth_context *auth_context, 184 auth_context, 248 ret = krb5_rd_rep (context, *auth_context, &ap_rep,
|
| /src/lib/libtelnet/ |
| forward.c | 38 rd_and_store_for_creds(context, auth_context, inbuf, ticket) 40 krb5_auth_context auth_context; 49 if ((retval = krb5_rd_cred(context, auth_context, inbuf, &creds, NULL)) != 0)
|
| kerberos5.c | 96 static krb5_auth_context auth_context; variable 211 ret = krb5_auth_con_init(telnet_context, &auth_context); 221 auth_context, &net); 230 krb5_auth_con_setkeytype(telnet_context, auth_context, 238 ret = krb5_mk_req(telnet_context, &auth_context, ap_opts, "host", 282 auth_context = NULL; 284 ret = krb5_auth_con_init(telnet_context, &auth_context); 294 auth_context, &zero); 315 ret = krb5_rd_req(telnet_context, &auth_context, &auth, 337 auth_context, foo, sizeof(foo)) [all...] |
| /src/crypto/external/bsd/heimdal/dist/kdc/ |
| hprop.h | 45 krb5_auth_context auth_context; member in struct:prop_data
|
| hprop.c | 122 ret = krb5_write_priv_message(context, pd->auth_context, 261 pd.auth_context = NULL; 286 krb5_auth_context auth_context; local 326 auth_context = NULL; 328 &auth_context, 350 pd.auth_context = auth_context; 361 ret = krb5_write_priv_message(context, auth_context, &fd, &data); 368 ret = krb5_read_priv_message(context, auth_context, &fd, &data); 377 krb5_auth_con_free(context, auth_context); [all...] |
| /src/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/ |
| accept_sec_context.c | 112 if (ctx->auth_context->local_subkey) 113 key = ctx->auth_context->local_subkey; 115 key = ctx->auth_context->remote_subkey; 117 if (ctx->auth_context->remote_subkey) 118 key = ctx->auth_context->remote_subkey; 120 key = ctx->auth_context->local_subkey; 123 key = ctx->auth_context->keyblock; 141 if ((acceptor && ctx->auth_context->local_subkey) || 142 (!acceptor && ctx->auth_context->remote_subkey)) 188 ctx->auth_context, [all...] |
| init_sec_context.c | 121 ctx->auth_context = NULL; 138 kret = krb5_auth_con_init (context, &ctx->auth_context); 149 krb5_auth_con_free(context, ctx->auth_context); 155 kret = set_addresses(context, ctx->auth_context, input_chan_bindings); 159 krb5_auth_con_free(context, ctx->auth_context); 171 krb5_auth_con_free(context, ctx->auth_context); 184 ctx->auth_context, 293 krb5_auth_con_getremoteseqnumber (context, ctx->auth_context, &seq_number); 457 ctx->auth_context, 461 ctx->auth_context, [all...] |
| /src/usr.bin/login/ |
| k5login.c | 131 krb5_auth_context auth_context = NULL; local 155 kerror = krb5_mk_req(c, &auth_context, 0, "host", phost, 158 if (auth_context) { 159 krb5_auth_con_free(c, auth_context); 160 auth_context = NULL; 185 kerror = krb5_rd_req(c, &auth_context, &packet, 220 if (auth_context) 221 krb5_auth_con_free(c, auth_context);
|
| /src/crypto/external/bsd/heimdal/dist/kpasswd/ |
| kpasswdd.c | 197 reply_priv (krb5_auth_context auth_context, 210 auth_context, 221 auth_context, 241 change (krb5_auth_context auth_context, 266 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED, 278 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED, 287 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED, 294 reply_priv (auth_context, s, sa, sa_size, 313 reply_priv (auth_context, s, sa, sa_size, 324 reply_priv(auth_context, s, sa, sa_size 590 krb5_auth_context auth_context = NULL; local [all...] |