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

12

/freebsd-11-stable/crypto/heimdal/lib/krb5/
H A Dauth_context.c38 krb5_auth_context *auth_context)
63 *auth_context = p;
69 krb5_auth_context auth_context)
71 if (auth_context != NULL) {
72 krb5_free_authenticator(context, &auth_context->authenticator);
73 if(auth_context->local_address){
74 free_HostAddress(auth_context->local_address);
75 free(auth_context->local_address);
77 if(auth_context->remote_address){
78 free_HostAddress(auth_context
37 krb5_auth_con_init(krb5_context context, krb5_auth_context *auth_context) argument
68 krb5_auth_con_free(krb5_context context, krb5_auth_context auth_context) argument
90 krb5_auth_con_setflags(krb5_context context, krb5_auth_context auth_context, int32_t flags) argument
100 krb5_auth_con_getflags(krb5_context context, krb5_auth_context auth_context, int32_t *flags) argument
109 krb5_auth_con_addflags(krb5_context context, krb5_auth_context auth_context, int32_t addflags, int32_t *flags) argument
121 krb5_auth_con_removeflags(krb5_context context, krb5_auth_context auth_context, int32_t removeflags, int32_t *flags) argument
133 krb5_auth_con_setaddrs(krb5_context context, krb5_auth_context auth_context, krb5_address *local_addr, krb5_address *remote_addr) argument
158 krb5_auth_con_genaddrs(krb5_context context, krb5_auth_context auth_context, krb5_socket_t fd, int flags) argument
220 krb5_auth_con_setaddrs_from_fd(krb5_context context, krb5_auth_context auth_context, void *p_fd) argument
234 krb5_auth_con_getaddrs(krb5_context context, krb5_auth_context auth_context, krb5_address **local_addr, krb5_address **remote_addr) argument
278 krb5_auth_con_getkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
286 krb5_auth_con_getlocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
295 krb5_auth_con_getremotesubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock **keyblock) argument
303 krb5_auth_con_setkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
313 krb5_auth_con_setlocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
323 krb5_auth_con_generatelocalsubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *key) argument
343 krb5_auth_con_setremotesubkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
353 krb5_auth_con_setcksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype cksumtype) argument
362 krb5_auth_con_getcksumtype(krb5_context context, krb5_auth_context auth_context, krb5_cksumtype *cksumtype) argument
371 krb5_auth_con_setkeytype(krb5_context context, krb5_auth_context auth_context, krb5_keytype keytype) argument
380 krb5_auth_con_getkeytype(krb5_context context, krb5_auth_context auth_context, krb5_keytype *keytype) argument
413 krb5_auth_con_getlocalseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t *seqnumber) argument
422 krb5_auth_con_setlocalseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t seqnumber) argument
431 krb5_auth_con_getremoteseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t *seqnumber) argument
440 krb5_auth_con_setremoteseqnumber(krb5_context context, krb5_auth_context auth_context, int32_t seqnumber) argument
450 krb5_auth_con_getauthenticator(krb5_context context, krb5_auth_context auth_context, krb5_authenticator *authenticator) argument
477 krb5_auth_con_setuserkey(krb5_context context, krb5_auth_context auth_context, krb5_keyblock *keyblock) argument
487 krb5_auth_con_getrcache(krb5_context context, krb5_auth_context auth_context, krb5_rcache *rcache) argument
496 krb5_auth_con_setrcache(krb5_context context, krb5_auth_context auth_context, krb5_rcache rcache) argument
[all...]
H A Dmk_safe.c38 krb5_auth_context auth_context,
52 if ((auth_context->flags &
57 if (auth_context->local_subkey)
58 key = auth_context->local_subkey;
59 else if (auth_context->remote_subkey)
60 key = auth_context->remote_subkey;
62 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
37 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.c38 krb5_auth_context auth_context,
54 body.ctime = auth_context->authenticator->ctime;
55 body.cusec = auth_context->authenticator->cusec;
56 if (auth_context->flags & KRB5_AUTH_CONTEXT_USE_SUBKEY) {
57 if (auth_context->local_subkey == NULL) {
59 auth_context,
60 auth_context->keyblock);
66 ret = krb5_copy_keyblock(context, auth_context->local_subkey,
76 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_SEQUENCE) {
77 if(auth_context
37 krb5_mk_rep(krb5_context context, krb5_auth_context auth_context, krb5_data *outbuf) argument
[all...]
H A Drd_safe.c38 krb5_auth_context auth_context,
60 if (auth_context->remote_subkey)
61 key = auth_context->remote_subkey;
62 else if (auth_context->local_subkey)
63 key = auth_context->local_subkey;
65 key = auth_context->keyblock;
85 krb5_auth_context auth_context,
96 if ((auth_context->flags &
133 && auth_context->remote_address
135 auth_context
37 verify_checksum(krb5_context context, krb5_auth_context auth_context, KRB_SAFE *safe) argument
84 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.c38 krb5_auth_context auth_context,
53 if ((auth_context->flags &
58 if (auth_context->local_subkey)
59 key = auth_context->local_subkey;
60 else if (auth_context->remote_subkey)
61 key = auth_context->remote_subkey;
63 key = auth_context->keyblock;
71 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
79 if (auth_context->flags & KRB5_AUTH_CONTEXT_RET_TIME) {
84 if (auth_context
37 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.c38 krb5_auth_context auth_context,
53 if ((auth_context->flags &
82 if (auth_context->remote_subkey)
83 key = auth_context->remote_subkey;
84 else if (auth_context->local_subkey)
85 key = auth_context->local_subkey;
87 key = auth_context->keyblock;
111 && auth_context->remote_address
113 auth_context->remote_address,
123 && auth_context
37 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.c38 krb5_auth_context *auth_context,
62 if (auth_context && *auth_context && (*auth_context)->keytype)
63 this_cred.session.keytype = (*auth_context)->keytype;
71 auth_context,
82 krb5_auth_context *auth_context,
110 ret = krb5_mk_req_exact (context, auth_context, ap_req_options,
37 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
81 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.c38 krb5_auth_context auth_context,
64 ret = krb5_crypto_init(context, auth_context->keyblock, 0, &crypto);
88 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
89 if ((*repl)->ctime != auth_context->authenticator->ctime ||
90 (*repl)->cusec != auth_context->authenticator->cusec)
100 krb5_auth_con_setremoteseqnumber(context, auth_context,
103 krb5_auth_con_setremotesubkey(context, auth_context, (*repl)->subkey);
37 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.c38 krb5_auth_context *auth_context,
52 if(auth_context) {
53 if(*auth_context == NULL)
54 ret = krb5_auth_con_init(context, auth_context);
57 ac = *auth_context;
141 if(auth_context == NULL)
148 krb5_auth_context *auth_context,
155 auth_context,
37 _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
147 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.c57 krb5_auth_context auth_context,
73 if ((auth_context->flags &
108 * auth_context.
111 if (auth_context->remote_subkey) {
112 ret = krb5_crypto_init(context, auth_context->remote_subkey,
130 if (auth_context->remote_subkey == NULL || ret == KRB5KRB_AP_ERR_BAD_INTEGRITY)
133 ret = krb5_crypto_init(context, auth_context->keyblock,
167 && auth_context->remote_address
168 && auth_context->remote_port) {
172 auth_context
56 krb5_rd_cred(krb5_context context, krb5_auth_context auth_context, krb5_data *in_data, krb5_creds ***ret_creds, krb5_replay_data *outdata) argument
327 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.c48 krb5_auth_context *auth_context,
56 return krb5_recvauth_match_version(context, auth_context, p_fd,
64 krb5_auth_context *auth_context,
85 * If there are no addresses in auth_context, get them from `fd'.
88 if (*auth_context == NULL) {
89 ret = krb5_auth_con_init (context, auth_context);
95 *auth_context,
167 auth_context,
204 ret = krb5_mk_rep (context, *auth_context, &data);
47 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
63 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.c82 krb5_auth_context auth_context = NULL; local
156 &auth_context,
162 krb5_auth_con_free (context, auth_context);
163 auth_context = NULL;
169 &auth_context,
179 if (auth_context)
180 krb5_auth_con_free (context, auth_context);
H A Dget_for_creds.c90 * @param auth_context the auth context with the key to encrypt the out_data.
105 krb5_auth_context auth_context,
150 auth_context,
173 * @param auth_context the auth context with the key to encrypt the out_data.
188 krb5_auth_context auth_context,
287 if (auth_context->flags & KRB5_AUTH_CONTEXT_DO_TIME) {
312 if (auth_context->local_address && auth_context->local_port && paddrs) {
316 auth_context->local_address,
317 auth_context
104 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
187 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...]
/freebsd-11-stable/crypto/heimdal/appl/kf/
H A Dkf.c128 krb5_auth_context auth_context; local
139 status = krb5_auth_con_init (context, &auth_context);
146 auth_context,
149 krb5_auth_con_free(context, auth_context);
160 krb5_auth_con_free(context, auth_context);
166 &auth_context,
179 krb5_auth_con_free(context, auth_context);
189 status = krb5_write_priv_message(context, auth_context, &sock, &data_send);
191 krb5_auth_con_free(context, auth_context);
197 status = krb5_write_priv_message(context, auth_context,
[all...]
H A Dkfd.c125 krb5_auth_context auth_context; local
139 status = krb5_auth_con_init (context, &auth_context);
144 auth_context,
161 &auth_context,
188 status=krb5_read_priv_message (context, auth_context,
192 status=krb5_read_priv_message (context, auth_context,
204 status = krb5_read_priv_message(context, auth_context, &sock, &data);
251 status = krb5_rd_cred2 (context, auth_context, ccache, &data);
277 status = krb5_write_priv_message(context, auth_context, &sock, &data);
278 krb5_auth_con_free(context, auth_context);
[all...]
/freebsd-11-stable/crypto/heimdal/appl/test/
H A Dtcp_client.c42 krb5_auth_context auth_context; local
49 status = krb5_auth_con_init (context, &auth_context);
54 auth_context,
68 &auth_context,
89 auth_context,
110 auth_context,
H A Dtcp_server.c42 krb5_auth_context auth_context; local
53 status = krb5_auth_con_init (context, &auth_context);
58 auth_context,
76 &auth_context,
115 auth_context,
142 auth_context,
H A Duu_client.c47 krb5_auth_context auth_context; local
73 status = krb5_auth_con_init (context, &auth_context);
86 auth_context,
128 status = krb5_auth_con_setuserkey(context, auth_context, &cred.session);
132 status = krb5_recvauth(context, &auth_context, &sock,
158 auth_context,
175 auth_context,
H A Duu_server.c46 krb5_auth_context auth_context; local
63 status = krb5_auth_con_init (context, &auth_context);
76 auth_context,
112 &auth_context,
146 auth_context,
161 auth_context,
/freebsd-11-stable/crypto/heimdal/kdc/
H A Dhprop.h43 krb5_auth_context auth_context; member in struct:prop_data
/freebsd-11-stable/crypto/heimdal/lib/gssapi/krb5/
H A Daccept_sec_context.c111 if (ctx->auth_context->local_subkey)
112 key = ctx->auth_context->local_subkey;
114 key = ctx->auth_context->remote_subkey;
116 if (ctx->auth_context->remote_subkey)
117 key = ctx->auth_context->remote_subkey;
119 key = ctx->auth_context->local_subkey;
122 key = ctx->auth_context->keyblock;
140 if ((acceptor && ctx->auth_context->local_subkey) ||
141 (!acceptor && ctx->auth_context->remote_subkey))
185 ctx->auth_context,
[all...]
/freebsd-11-stable/crypto/heimdal/kpasswd/
H A Dkpasswdd.c190 reply_priv (krb5_auth_context auth_context, argument
203 auth_context,
214 auth_context,
234 change (krb5_auth_context auth_context, argument
259 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
271 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
280 reply_priv (auth_context, s, sa, sa_size, KRB5_KPASSWD_MALFORMED,
287 reply_priv (auth_context, s, sa, sa_size,
305 reply_priv (auth_context, s, sa, sa_size,
316 reply_priv(auth_context,
432 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, krb5_address *client_addr) argument
589 krb5_auth_context auth_context = NULL; local
[all...]
/freebsd-11-stable/crypto/heimdal/appl/telnet/libtelnet/
H A Dkerberos5.c115 static krb5_auth_context auth_context; variable
226 ret = krb5_auth_con_init (context, &auth_context);
236 auth_context,
247 krb5_auth_con_setkeytype (context, auth_context, KRB5_ENCTYPE_DES_CBC_CRC);
284 ret = krb5_mk_req_exact(context, &auth_context, ap_opts,
359 auth_context = NULL;
361 ret = krb5_auth_con_init (context, &auth_context);
371 auth_context,
397 &auth_context,
429 auth_context,
[all...]
/freebsd-11-stable/contrib/telnet/libtelnet/
H A Dkerberos5.c97 static krb5_auth_context auth_context; variable
202 ret = krb5_auth_con_init (context, &auth_context);
211 auth_context,
221 krb5_auth_con_setkeytype (context, auth_context, KEYTYPE_DES);
261 ret = krb5_mk_req_exact(context, &auth_context, ap_opts,
320 auth_context = NULL;
322 ret = krb5_auth_con_init (context, &auth_context);
332 auth_context,
358 &auth_context,
388 auth_context,
[all...]

Completed in 101 milliseconds

12