Home
last modified time | relevance | path

Searched refs:auth_context (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dauth_con.c34 *auth_context = in krb5_auth_con_init()
36 if (!*auth_context) in krb5_auth_con_init()
57 if (auth_context->local_addr) in krb5_auth_con_free()
65 if (auth_context->authentp) in krb5_auth_con_free()
67 if (auth_context->keyblock) in krb5_auth_con_free()
74 if (auth_context->rcache) in krb5_auth_con_free()
78 free(auth_context); in krb5_auth_con_free()
97 &auth_context->local_addr); in krb5_auth_con_setaddrs()
119 auth_context->local_addr, in krb5_auth_con_getaddrs()
124 auth_context->remote_addr, in krb5_auth_con_getaddrs()
[all …]
H A Dmk_req_ext.c81 krb5_auth_context auth_context, in krb5int_generate_and_save_subkey() argument
108 auth_context->send_subkey = NULL; in krb5int_generate_and_save_subkey()
117 auth_context->recv_subkey = NULL; in krb5int_generate_and_save_subkey()
120 &auth_context->recv_subkey); in krb5int_generate_and_save_subkey()
123 auth_context->send_subkey = NULL; in krb5int_generate_and_save_subkey()
159 if (*auth_context == NULL) { in krb5_mk_req_extended()
162 *auth_context = new_auth_context; in krb5_mk_req_extended()
167 (*auth_context)->keyblock = NULL; in krb5_mk_req_extended()
187 *auth_context, in krb5_mk_req_extended()
212 (*auth_context)->keyblock, in krb5_mk_req_extended()
[all …]
H A Dmk_priv.c130 keyblock = auth_context->keyblock; in krb5_mk_priv()
134 (auth_context->rcache == NULL)) in krb5_mk_priv()
157 auth_context->local_seq_number++; in krb5_mk_priv()
170 if (auth_context->local_addr) { in krb5_mk_priv()
171 if (auth_context->local_port) { in krb5_mk_priv()
173 auth_context->local_port, in krb5_mk_priv()
185 if (auth_context->remote_addr) { in krb5_mk_priv()
186 if (auth_context->remote_port) { in krb5_mk_priv()
188 auth_context->remote_port, in krb5_mk_priv()
203 auth_context->i_vector, outbuf))) { in krb5_mk_priv()
[all …]
H A Drd_req_dec.c189 (*auth_context)->keyblock = NULL; in krb5_rd_req_decoded_opt()
199 &((*auth_context)->authentp), in krb5_rd_req_decoded_opt()
209 if ((*auth_context)->remote_addr && in krb5_rd_req_decoded_opt()
286 if ((*auth_context)->rcache) { in krb5_rd_req_decoded_opt()
311 (*auth_context)->authentp->ctime, in krb5_rd_req_decoded_opt()
432 (*auth_context)->remote_seq_number = (*auth_context)->authentp->seq_number; in krb5_rd_req_decoded_opt()
458 (*auth_context)->recv_subkey = 0; in krb5_rd_req_decoded_opt()
459 (*auth_context)->send_subkey = 0; in krb5_rd_req_decoded_opt()
464 (*auth_context)->keyblock = NULL; in krb5_rd_req_decoded_opt()
477 (*auth_context)->local_seq_number ^= in krb5_rd_req_decoded_opt()
[all …]
H A Dmk_safe.c154 if ((keyblock = auth_context->send_subkey) == NULL) in krb5_mk_safe()
155 keyblock = auth_context->keyblock; in krb5_mk_safe()
160 (auth_context->rcache == NULL)){ in krb5_mk_safe()
189 replaydata.seq = auth_context->local_seq_number++; in krb5_mk_safe()
204 if (auth_context->local_addr) { in krb5_mk_safe()
205 if (auth_context->local_port) { in krb5_mk_safe()
215 plocal_fulladdr = auth_context->local_addr; in krb5_mk_safe()
220 if (auth_context->remote_addr) { in krb5_mk_safe()
221 if (auth_context->remote_port) { in krb5_mk_safe()
253 if (auth_context->safe_cksumtype == sumtypes[i]) in krb5_mk_safe()
[all …]
H A Drd_priv.c162 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_priv()
163 keyblock = auth_context->keyblock; in krb5_rd_priv()
172 (auth_context->rcache == NULL)) in krb5_rd_priv()
182 if (auth_context->local_addr) { in krb5_rd_priv()
183 if (auth_context->local_port) { in krb5_rd_priv()
193 plocal_fulladdr = auth_context->local_addr; in krb5_rd_priv()
197 if (auth_context->remote_addr) { in krb5_rd_priv()
198 if (auth_context->remote_port) { in krb5_rd_priv()
216 auth_context->i_vector, in krb5_rd_priv()
246 if (!krb5int_auth_con_chkseqnum(context, auth_context, in krb5_rd_priv()
[all …]
H A Drd_safe.c177 (auth_context->rcache == NULL)) in krb5_rd_safe()
180 if (!auth_context->remote_addr) in krb5_rd_safe()
184 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_safe()
185 keyblock = auth_context->keyblock; in krb5_rd_safe()
194 if (auth_context->local_addr) { in krb5_rd_safe()
195 if (auth_context->local_port) { in krb5_rd_safe()
205 plocal_fulladdr = auth_context->local_addr; in krb5_rd_safe()
209 if (auth_context->remote_port) { in krb5_rd_safe()
211 auth_context->remote_port, in krb5_rd_safe()
219 premote_fulladdr = auth_context->remote_addr; in krb5_rd_safe()
[all …]
H A Dmk_cred.c192 if ((keyblock = auth_context->send_subkey) == NULL) in krb5_mk_ncred()
193 keyblock = auth_context->keyblock; in krb5_mk_ncred()
197 (auth_context->rcache == NULL)) in krb5_mk_ncred()
217 auth_context->local_seq_number++; in krb5_mk_ncred()
223 if (auth_context->local_addr) { in krb5_mk_ncred()
224 if (auth_context->local_port) { in krb5_mk_ncred()
226 auth_context->local_port, in krb5_mk_ncred()
231 plocal_fulladdr = auth_context->local_addr; in krb5_mk_ncred()
235 if (auth_context->remote_addr) { in krb5_mk_ncred()
236 if (auth_context->remote_port) { in krb5_mk_ncred()
[all …]
H A Dmk_rep.c53 (auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_RET_SEQUENCE)) && in krb5_mk_rep()
54 (auth_context->local_seq_number == 0)) { in krb5_mk_rep()
56 &auth_context->local_seq_number))) in krb5_mk_rep()
60 repl.ctime = auth_context->authentp->ctime; in krb5_mk_rep()
61 repl.cusec = auth_context->authentp->cusec; in krb5_mk_rep()
63 retval = krb5int_generate_and_save_subkey (context, auth_context, in krb5_mk_rep()
64 auth_context->keyblock); in krb5_mk_rep()
67 repl.subkey = auth_context->send_subkey; in krb5_mk_rep()
69 repl.subkey = auth_context->authentp->subkey; in krb5_mk_rep()
70 repl.seq_number = auth_context->local_seq_number; in krb5_mk_rep()
[all …]
H A Drd_rep.c78 if (((*repl)->ctime != auth_context->authentp->ctime) || in krb5_rd_rep()
79 ((*repl)->cusec != auth_context->authentp->cusec)) { in krb5_rd_rep()
86 if (auth_context->recv_subkey) { in krb5_rd_rep()
87 krb5_free_keyblock(context, auth_context->recv_subkey); in krb5_rd_rep()
88 auth_context->recv_subkey = NULL; in krb5_rd_rep()
91 &auth_context->recv_subkey); in krb5_rd_rep()
94 if (auth_context->send_subkey) { in krb5_rd_rep()
96 auth_context->send_subkey = NULL; in krb5_rd_rep()
99 &auth_context->send_subkey); in krb5_rd_rep()
102 auth_context->send_subkey = NULL; in krb5_rd_rep()
[all …]
H A Drd_cred.c181 if ((keyblock = auth_context->recv_subkey) == NULL) in krb5_rd_cred()
182 keyblock = auth_context->keyblock; in krb5_rd_cred()
184 if (((auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_RET_TIME) || in krb5_rd_cred()
190 if ((auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) && in krb5_rd_cred()
191 (auth_context->rcache == NULL)) in krb5_rd_cred()
203 auth_context->keyblock, in krb5_rd_cred()
209 if (auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) { in krb5_rd_cred()
229 if (auth_context->auth_context_flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) { in krb5_rd_cred()
230 if (auth_context->remote_seq_number != replaydata.seq) { in krb5_rd_cred()
234 auth_context->remote_seq_number++; in krb5_rd_cred()
[all …]
H A Drecvauth.c47 krb5_auth_context * auth_context, in recvauth_common() argument
149 if (*auth_context == NULL) { in recvauth_common()
151 *auth_context = new_auth_context; in recvauth_common()
154 krb5_auth_con_getrcache(context, *auth_context, &rcache); in recvauth_common()
172 problem = krb5_rd_req(context, auth_context, &inbuf, server, in recvauth_common()
233 if ((retval = krb5_mk_rep(context, *auth_context, &outbuf))) { in recvauth_common()
243 krb5_auth_con_free(context, *auth_context); in recvauth_common()
245 *auth_context = NULL; in recvauth_common()
249 krb5_auth_con_setrcache(context, *auth_context, NULL); in recvauth_common()
264 krb5_auth_context *auth_context, in krb5_recvauth_version() argument
[all …]
H A Drd_req.c49 krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_con… in krb5_rd_req() argument
76 if (*auth_context == NULL) { in krb5_rd_req()
79 *auth_context = new_auth_context; in krb5_rd_req()
86 if (((*auth_context)->rcache == NULL) in krb5_rd_req()
87 && ((*auth_context)->auth_context_flags & KRB5_AUTH_CONTEXT_DO_TIME) in krb5_rd_req()
90 krb5_princ_component(context,server,0), &(*auth_context)->rcache))) in krb5_rd_req()
101 retval = krb5_rd_req_decoded(context, auth_context, request, server, in krb5_rd_req()
110 *auth_context = NULL; in krb5_rd_req()
H A Dchpw.c19 krb5_auth_context auth_context, in krb5int_mk_chpw_req() argument
32 if ((ret = krb5_auth_con_setflags(context, auth_context, in krb5int_mk_chpw_req()
39 if ((ret = krb5_mk_priv(context, auth_context, in krb5int_mk_chpw_req()
164 ret = krb5_auth_con_getsendsubkey(context, auth_context, &tmp); in krb5int_rd_chpw_rep()
168 ret = krb5_rd_rep(context, auth_context, &ap_rep, &ap_rep_enc); in krb5int_rd_chpw_rep()
184 ret = krb5_auth_con_setrecvsubkey(context, auth_context, tmp); in krb5int_rd_chpw_rep()
189 ret = krb5_rd_priv(context, auth_context, &cipherresult, &clearresult, in krb5int_rd_chpw_rep()
279 krb5_auth_context auth_context, in krb5int_mk_setpw_req() argument
295 if ((ret = krb5_auth_con_setflags(context, auth_context, in krb5int_mk_setpw_req()
441 ret = krb5_rd_rep(context, auth_context, &ap_rep, &ap_rep_enc); in krb5int_rd_setpw_rep()
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/krb5/krb/
H A Dser_actx.c81 krb5_auth_context auth_context; in krb5_auth_context_size() local
98 if (auth_context) { in krb5_auth_context_size()
102 if (auth_context->i_vector && auth_context->keyblock) { in krb5_auth_context_size()
214 if (auth_context) { in krb5_auth_context_externalize()
410 if ((auth_context->i_vector = in krb5_auth_context_internalize()
432 &auth_context-> in krb5_auth_context_internalize()
444 &auth_context-> in krb5_auth_context_internalize()
456 &auth_context-> in krb5_auth_context_internalize()
468 &auth_context-> in krb5_auth_context_internalize()
491 &auth_context-> in krb5_auth_context_internalize()
[all …]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Daccept_sec_context.c98 rd_and_store_for_creds(context, auth_context, inbuf, out_cred) in rd_and_store_for_creds() argument
100 krb5_auth_context auth_context;
116 krb5_auth_con_setflags(context, auth_context,
147 if (auth_context->keyblock != NULL)
148 enctype = auth_context->keyblock->enctype;
306 krb5_auth_context auth_context = NULL; local
555 (void) krb5_auth_con_setflags(context, auth_context,
614 krb5_auth_con_setflags(context, auth_context,
838 ctx->auth_context = auth_context;
1168 if (auth_context && !ctx) {
[all …]
H A Dinit_sec_context.c181 krb5_auth_con_getflags(context, auth_context, &con_flags); in make_gss_checksum()
182 krb5_auth_con_setflags(context, auth_context, in make_gss_checksum()
185 code = krb5_fwd_tgt_creds(context, auth_context, 0, in make_gss_checksum()
191 krb5_auth_con_setflags(context, auth_context, con_flags); in make_gss_checksum()
211 if (data->ctx->auth_context->keyblock != NULL in make_gss_checksum()
212 && data->ctx->auth_context->keyblock->enctype == 18) { in make_gss_checksum()
304 krb5_auth_con_set_checksum_func(context, ctx->auth_context,
521 krb5_auth_con_setflags(context, ctx->auth_context, in new_connection()
650 if (ctx_free->auth_context) in new_connection()
651 krb5_auth_con_free(context, ctx_free->auth_context); in new_connection()
[all …]
/illumos-gate/usr/src/lib/krb5/kadm5/clnt/
H A Dchangepw.c48 krb5_auth_context auth_context,
53 krb5_auth_context auth_context,
94 krb5_auth_context auth_context; local
109 auth_context = NULL;
116 if ((code = krb5_auth_con_init(context, &auth_context)))
119 if (code = krb5_mk_req_extended(context, &auth_context,
263 if (code = krb5_auth_con_setaddrs(context, auth_context,
270 if (code = krb5int_mk_chpw_req(context, auth_context,
324 if (code = krb5_auth_con_setaddrs(context, auth_context,
342 if (auth_context != NULL)
[all …]
H A Dchpw.c19 krb5_auth_context auth_context, in krb5int_mk_chpw_req() argument
32 if ((ret = krb5_auth_con_setflags(context, auth_context, in krb5int_mk_chpw_req()
39 if ((ret = krb5_mk_priv(context, auth_context, in krb5int_mk_chpw_req()
87 krb5int_rd_chpw_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *packet, int *r… in krb5int_rd_chpw_rep() argument
166 ret = krb5_auth_con_getsendsubkey(context, auth_context, &tmp); in krb5int_rd_chpw_rep()
170 ret = krb5_rd_rep(context, auth_context, &ap_rep, &ap_rep_enc); in krb5int_rd_chpw_rep()
186 ret = krb5_auth_con_setrecvsubkey(context, auth_context, tmp); in krb5int_rd_chpw_rep()
191 ret = krb5_rd_priv(context, auth_context, &cipherresult, &clearresult, in krb5int_rd_chpw_rep()
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dchangepw.c47 krb5_auth_context auth_context; member
158 if ((code = krb5_auth_con_setaddrs(ctx->context, ctx->auth_context, in kpasswd_sendto_msg_callback()
164 ctx->auth_context, in kpasswd_sendto_msg_callback()
171 ctx->auth_context, in kpasswd_sendto_msg_callback()
217 &callback_ctx.auth_context))) in krb5_change_set_password()
221 &callback_ctx.auth_context, in krb5_change_set_password()
267 callback_ctx.auth_context, in krb5_change_set_password()
274 callback_ctx.auth_context, in krb5_change_set_password()
280 callback_ctx.auth_context, in krb5_change_set_password()
328 if (callback_ctx.auth_context != NULL) in krb5_change_set_password()
[all …]
H A Dgenaddrs.c77 krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, int infd, int flags) in krb5_auth_con_genaddrs() argument
131 if (!(retval = krb5_auth_con_setaddrs(context, auth_context, laddr, raddr))) in krb5_auth_con_genaddrs()
132 return (krb5_auth_con_setports(context, auth_context, lport, rport)); in krb5_auth_con_genaddrs()
/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dchgpwd.c57 krb5_auth_context auth_context; in process_chpw_request() local
74 auth_context = NULL; in process_chpw_request()
142 if (ret = krb5_auth_con_init(context, &auth_context)) { in process_chpw_request()
153 if (ret = krb5_auth_con_setflags(context, auth_context, in process_chpw_request()
299 if (ret = krb5_auth_con_setaddrs(context, auth_context, NULL, in process_chpw_request()
322 if (ret = krb5_mk_rep(context, auth_context, &ap_rep)) { in process_chpw_request()
336 if (ret = krb5_rd_priv(context, auth_context, &cipher, in process_chpw_request()
434 if (ret = krb5_auth_con_setaddrs(context, auth_context, in process_chpw_request()
441 if (ret = krb5_mk_priv(context, auth_context, &clear, in process_chpw_request()
542 if (auth_context) in process_chpw_request()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/telnet/
H A Dkerberos5.c98 static krb5_auth_context auth_context = 0; variable
319 if (auth_context) { in kerberos5_send()
320 krb5_auth_con_free(telnet_context, auth_context); in kerberos5_send()
321 auth_context = 0; in kerberos5_send()
323 if ((retval = krb5_auth_con_init(telnet_context, &auth_context))) { in kerberos5_send()
332 krb5_auth_con_setflags(telnet_context, auth_context, in kerberos5_send()
341 retval = krb5_mk_req_extended(telnet_context, &auth_context, ap_opts, in kerberos5_send()
344 krb5_auth_con_getlocalsubkey(telnet_context, auth_context, &newkey); in kerberos5_send()
456 retval = krb5_rd_rep(telnet_context, auth_context, in kerberos5_reply()
653 retval = krb5_auth_con_genaddrs(telnet_context, auth_context, net, in kerberos5_forward()
[all …]
/illumos-gate/usr/src/cmd/krb5/slave/
H A Dkprop.c112 krb5_auth_context auth_context; local
145 kerberos_authenticate(context, &auth_context, fd, my_principal,
147 xmit_database(context, auth_context, my_creds, fd, database_fd,
485 krb5_auth_context *auth_context;
494 retval = krb5_auth_con_init(context, auth_context);
498 krb5_auth_con_setflags(context, *auth_context,
508 retval = krb5_sendauth(context, auth_context, (void *)&fd,
633 krb5_auth_context auth_context;
655 retval = krb5_mk_safe(context, auth_context, &inbuf,
673 retval = krb5_auth_con_initivector(context, auth_context);
[all …]
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Ddelete_sec_context.c187 if (ctx->auth_context) {
189 (void)krb5_auth_con_setrcache(context, ctx->auth_context, NULL);
191 krb5_auth_con_free(context, ctx->auth_context);

12