Searched refs:auth_context (Results 1 - 25 of 43) sorted by relevance

12

/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/krb5/
H A Dauth_context.c1 /* $NetBSD: auth_context.c,v 1.1.1.1 2011/04/13 18:15:31 elric Exp $ */
40 krb5_auth_context *auth_context)
65 *auth_context = p;
71 krb5_auth_context auth_context)
73 if (auth_context != NULL) {
74 krb5_free_authenticator(context, &auth_context->authenticator);
75 if(auth_context->local_address){
76 free_HostAddress(auth_context->local_address);
77 free(auth_context->local_address);
79 if(auth_context
39 krb5_auth_con_init(krb5_context context, krb5_auth_context *auth_context) argument
70 krb5_auth_con_free(krb5_context context, krb5_auth_context auth_context) argument
92 krb5_auth_con_setflags(krb5_context context, krb5_auth_context auth_context, int32_t flags) argument
102 krb5_auth_con_getflags(krb5_context context, krb5_auth_context auth_context, int32_t *flags) argument
111 krb5_auth_con_addflags(krb5_context context, krb5_auth_context auth_context, int32_t addflags, int32_t *flags) argument
123 krb5_auth_con_removeflags(krb5_context context, krb5_auth_context auth_context, int32_t removeflags, int32_t *flags) argument
135 krb5_auth_con_setaddrs(krb5_context context, krb5_auth_context auth_context, krb5_address *local_addr, krb5_address *remote_addr) argument
160 krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, krb5_socket_t fd, int flags) argument
222 krb5_auth_con_setaddrs_from_fd(krb5_context context, krb5_auth_context auth_context, void *p_fd) argument
236 krb5_auth_con_getaddrs(krb5_context context, krb5_auth_context auth_context, krb5_address **local_addr, krb5_address **remote_addr) argument
280 krb5_auth_con_getkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
288 krb5_auth_con_getlocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
297 krb5_auth_con_getremotesubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
305 krb5_auth_con_setkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
315 krb5_auth_con_setlocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
325 krb5_auth_con_generatelocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *key) argument
345 krb5_auth_con_setremotesubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
355 krb5_auth_con_setcksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype cksumtype) argument
364 krb5_auth_con_getcksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype *cksumtype) argument
373 krb5_auth_con_setkeytype(krb5_context context, krb5_auth_context auth_context, krb5_keytype keytype) argument
382 krb5_auth_con_getkeytype(krb5_context context, krb5_auth_context auth_context, krb5_keytype *keytype) argument
415 krb5_auth_con_getlocalseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t *seqnumber) argument
424 krb5_auth_con_setlocalseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t seqnumber) argument
433 krb5_auth_con_getremoteseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t *seqnumber) argument
442 krb5_auth_con_setremoteseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t seqnumber) argument
452 krb5_auth_con_getauthenticator(krb5_context context, krb5_auth_context auth_context, krb5_authenticator *authenticator) argument
479 krb5_auth_con_setuserkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
489 krb5_auth_con_getrcache(krb5_context context, krb5_auth_context auth_context, krb5_rcache *rcache) argument
498 krb5_auth_con_setrcache(krb5_context context, krb5_auth_context auth_context, krb5_rcache rcache) argument
[all...]
H A Dmk_safe.c40 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
39 krb5_mk_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *userdata, krb5_data *outbuf, krb5_replay_data *outdata) argument
[all...]
H A Dmk_rep.c40 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,
78 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) {
79 if(auth_context
39 krb5_mk_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *outbuf) argument
[all...]
H A Drd_safe.c40 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
39 verify_checksum(krb5_context context, krb5_auth_context auth_context, KRB_SAFE *safe) argument
86 krb5_rd_safe(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) argument
[all...]
H A Dmk_priv.c40 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
39 krb5_mk_priv(krb5_context context, krb5_auth_context auth_context, const krb5_data *userdata, krb5_data *outbuf, krb5_replay_data *outdata) argument
[all...]
H A Drd_priv.c40 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
39 krb5_rd_priv(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_data *outbuf, krb5_replay_data *outdata) argument
[all...]
H A Dmk_req.c40 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,
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 Drd_rep.c40 krb5_auth_context auth_context,
66 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)
102 krb5_auth_con_setremoteseqnumber(context, auth_context,
105 krb5_auth_con_setremotesubkey(context, auth_context, (*repl)->subkey);
39 krb5_rd_rep(krb5_context context, krb5_auth_context auth_context, const krb5_data *inbuf, krb5_ap_rep_enc_part **repl) argument
H A Dmk_req_ext.c40 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,
39 _krb5_mk_req_internal(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_data *outbuf, krb5_key_usage checksum_usage, krb5_key_usage encrypt_usage) argument
149 krb5_mk_req_extended(krb5_context context, krb5_auth_context *auth_context, const krb5_flags ap_req_options, krb5_data *in_data, krb5_creds *in_creds, krb5_data *outbuf) argument
H A Drd_cred.c59 krb5_auth_context auth_context,
74 if ((auth_context->flags &
109 * auth_context.
112 if (auth_context->remote_subkey) {
113 ret = krb5_crypto_init(context, auth_context->remote_subkey,
131 if (auth_context->remote_subkey == NULL || ret == KRB5KRB_AP_ERR_BAD_INTEGRITY)
134 ret = krb5_crypto_init(context, auth_context->keyblock,
168 && auth_context->remote_address
169 && auth_context->remote_port) {
173 auth_context
58 krb5_rd_cred(krb5_context context, krb5_auth_context auth_context, krb5_data *in_data, krb5_creds ***ret_creds, krb5_replay_data *outdata) argument
328 krb5_rd_cred2(krb5_context context, krb5_auth_context auth_context, krb5_ccache ccache, krb5_data *in_data) argument
[all...]
H A Dbuild_auth.c106 krb5_auth_context auth_context,
128 ret = krb5_auth_con_getlocalsubkey(context, auth_context, &auth.subkey);
132 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) {
133 if(auth_context->local_seqnumber == 0)
136 &auth_context->local_seqnumber);
142 *auth.seq_number = auth_context->local_seqnumber;
168 /* XXX - Copy more to auth_context? */
170 auth_context->authenticator->ctime = auth.ctime;
171 auth_context->authenticator->cusec = auth.cusec;
105 _krb5_build_authenticator(krb5_context context, krb5_auth_context auth_context, krb5_enctype enctype, krb5_creds *cred, Checksum *cksum, krb5_data *result, krb5_key_usage usage) argument
H A Drecvauth.c50 krb5_auth_context *auth_context,
58 return krb5_recvauth_match_version(context, auth_context, p_fd,
66 krb5_auth_context *auth_context,
87 * If there are no addresses in auth_context, get them from `fd'.
90 if (*auth_context == NULL) {
91 ret = krb5_auth_con_init (context, auth_context);
97 *auth_context,
169 auth_context,
206 ret = krb5_mk_rep (context, *auth_context, &data);
49 krb5_recvauth(krb5_context context, krb5_auth_context *auth_context, krb5_pointer p_fd, const char *appl_version, krb5_principal server, int32_t flags, krb5_keytab keytab, krb5_ticket **ticket) argument
65 krb5_recvauth_match_version(krb5_context context, krb5_auth_context *auth_context, krb5_pointer p_fd, krb5_boolean (*match_appl_version)(const void *, const char*), const void *match_data, krb5_principal server, int32_t flags, krb5_keytab keytab, krb5_ticket **ticket) argument
H A Dverify_init.c84 krb5_auth_context auth_context = NULL; local
158 &auth_context,
164 krb5_auth_con_free (context, auth_context);
165 auth_context = NULL;
171 &auth_context,
181 if (auth_context)
182 krb5_auth_con_free (context, auth_context);
H A Dget_for_creds.c92 * @param auth_context the auth context with the key to encrypt the out_data.
107 krb5_auth_context auth_context,
152 auth_context,
175 * @param auth_context the auth context with the key to encrypt the out_data.
190 krb5_auth_context auth_context,
289 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
314 if (auth_context->local_address && auth_context->local_port && paddrs) {
318 auth_context->local_address,
319 auth_context
106 krb5_fwd_tgt_creds(krb5_context context, krb5_auth_context auth_context, const char *hostname, krb5_principal client, krb5_principal server, krb5_ccache ccache, int forwardable, krb5_data *out_data) argument
189 krb5_get_forwarded_creds(krb5_context context, krb5_auth_context auth_context, krb5_ccache ccache, krb5_flags flags, const char *hostname, krb5_creds *in_creds, krb5_data *out_data) argument
[all...]
H A Dchangepw.c73 krb5_auth_context *auth_context,
100 auth_context,
114 *auth_context,
165 krb5_auth_context *auth_context,
187 auth_context,
216 *auth_context,
271 krb5_auth_context auth_context,
402 auth_context,
411 auth_context,
519 krb5_auth_context auth_context local
72 chgpw_send_request(krb5_context context, krb5_auth_context *auth_context, krb5_creds *creds, krb5_principal targprinc, int is_stream, rk_socket_t sock, const char *passwd, const char *host) argument
164 setpw_send_request(krb5_context context, krb5_auth_context *auth_context, krb5_creds *creds, krb5_principal targprinc, int is_stream, rk_socket_t sock, const char *passwd, const char *host) argument
270 process_reply(krb5_context context, krb5_auth_context auth_context, int is_stream, rk_socket_t sock, int *result_code, krb5_data *result_code_string, krb5_data *result_string, const char *host) argument
[all...]
H A Drd_req.c172 krb5_auth_context auth_context,
185 ad = auth_context->authenticator->authorization_data;
316 krb5_auth_context *auth_context,
325 auth_context,
337 krb5_auth_context *auth_context,
354 if (auth_context && *auth_context) {
355 ac = *auth_context;
499 if (auth_context) {
500 if (*auth_context
171 find_etypelist(krb5_context context, krb5_auth_context auth_context, EtypeList *etypes) argument
315 krb5_verify_ap_req(krb5_context context, krb5_auth_context *auth_context, krb5_ap_req *ap_req, krb5_const_principal server, krb5_keyblock *keyblock, krb5_flags flags, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
336 krb5_verify_ap_req2(krb5_context context, krb5_auth_context *auth_context, krb5_ap_req *ap_req, krb5_const_principal server, krb5_keyblock *keyblock, krb5_flags flags, krb5_flags *ap_req_options, krb5_ticket **ticket, krb5_key_usage usage) argument
688 krb5_rd_req(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_keytab keytab, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
733 krb5_rd_req_with_keyblock(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_keyblock *keyblock, krb5_flags *ap_req_options, krb5_ticket **ticket) argument
841 krb5_rd_req_ctx(krb5_context context, krb5_auth_context *auth_context, const krb5_data *inbuf, krb5_const_principal server, krb5_rd_req_in_ctx inctx, krb5_rd_req_out_ctx *outctx) argument
[all...]
/netbsd-6-1-5-RELEASE/lib/libtelnet/
H A Dforward.c38 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)
H A Dkerberos5.c96 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, KEYTYPE_DES);
237 ret = krb5_mk_req(telnet_context, &auth_context, ap_opts, "host",
281 auth_context = NULL;
283 ret = krb5_auth_con_init(telnet_context, &auth_context);
293 auth_context, &zero);
314 ret = krb5_rd_req(telnet_context, &auth_context, &auth,
336 auth_context, fo
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kdc/
H A Dhprop.h45 krb5_auth_context auth_context; member in struct:prop_data
H A Dhprop.c122 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,
351 pd.auth_context = auth_context;
362 ret = krb5_write_priv_message(context, auth_context, &fd, &data);
369 ret = krb5_read_priv_message(context, auth_context, &fd, &data);
378 krb5_auth_con_free(context, auth_context);
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/gssapi/krb5/
H A Daccept_sec_context.c109 if (ctx->auth_context->local_subkey)
110 key = ctx->auth_context->local_subkey;
112 key = ctx->auth_context->remote_subkey;
114 if (ctx->auth_context->remote_subkey)
115 key = ctx->auth_context->remote_subkey;
117 key = ctx->auth_context->local_subkey;
120 key = ctx->auth_context->keyblock;
138 if ((acceptor && ctx->auth_context->local_subkey) ||
139 (!acceptor && ctx->auth_context->remote_subkey))
183 ctx->auth_context,
[all...]
H A Dinit_sec_context.c121 ctx->auth_context = NULL;
138 kret = krb5_auth_con_init (context, &ctx->auth_context);
148 krb5_auth_con_free(context, ctx->auth_context);
153 kret = set_addresses(context, ctx->auth_context, input_chan_bindings);
157 krb5_auth_con_free(context, ctx->auth_context);
169 krb5_auth_con_free(context, ctx->auth_context);
182 ctx->auth_context,
292 krb5_auth_con_getremoteseqnumber (context, ctx->auth_context, &seq_number);
488 ctx->auth_context,
492 ctx->auth_context,
[all...]
/netbsd-6-1-5-RELEASE/usr.bin/login/
H A Dk5login.c131 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);
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/kpasswd/
H A Dkpasswdd.c192 reply_priv (krb5_auth_context auth_context, argument
205 auth_context,
216 auth_context,
236 change (krb5_auth_context auth_context, argument
261 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
273 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
282 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
289 reply_priv (auth_context, s, sa, sa_size,
307 reply_priv (auth_context, s, sa, sa_size,
318 reply_priv(auth_context,
434 verify(krb5_auth_context *auth_context, krb5_realm *realms, krb5_keytab keytab, krb5_ticket **ticket, krb5_data *out_data, uint16_t *version, int s, struct sockaddr *sa, int sa_size, u_char *msg, size_t len) argument
575 krb5_auth_context auth_context = NULL; local
[all...]
/netbsd-6-1-5-RELEASE/crypto/external/bsd/heimdal/dist/lib/kadm5/
H A Dipropd_slave.c158 ihave (krb5_context context, krb5_auth_context auth_context, argument
173 ret = krb5_write_priv_message(context, auth_context, &fd, &data);
320 krb5_auth_context auth_context)
336 ret = krb5_write_priv_message(context, auth_context, &fd, &data);
346 krb5_auth_context auth_context)
378 ret = krb5_read_priv_message(context, auth_context, &fd, &data);
497 krb5_auth_context auth_context; local
598 auth_context = NULL;
630 if (auth_context) {
631 krb5_auth_con_free(context, auth_context);
319 send_im_here(krb5_context context, int fd, krb5_auth_context auth_context) argument
344 receive_everything(krb5_context context, int fd, kadm5_server_context *server_context, krb5_auth_context auth_context) argument
[all...]

Completed in 251 milliseconds

12