• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Heimdal-398.1.2/lib/krb5/

Lines Matching refs:auth_context

38 		   krb5_auth_context *auth_context)
64 *auth_context = p;
70 krb5_auth_context auth_context)
72 if (auth_context != NULL) {
73 krb5_free_authenticator(context, &auth_context->authenticator);
74 if(auth_context->local_address){
75 free_HostAddress(auth_context->local_address);
76 free(auth_context->local_address);
78 if(auth_context->remote_address){
79 free_HostAddress(auth_context->remote_address);
80 free(auth_context->remote_address);
82 krb5_free_keyblock(context, auth_context->keyblock);
83 krb5_free_keyblock(context, auth_context->remote_subkey);
84 krb5_free_keyblock(context, auth_context->local_subkey);
85 if (auth_context->auth_data) {
86 free_AuthorizationData(auth_context->auth_data);
87 free(auth_context->auth_data);
89 free (auth_context);
96 krb5_auth_context auth_context,
99 auth_context->flags = flags;
106 krb5_auth_context auth_context,
109 *flags = auth_context->flags;
115 krb5_auth_context auth_context,
120 *flags = auth_context->flags;
121 auth_context->flags |= addflags;
127 krb5_auth_context auth_context,
132 *flags = auth_context->flags;
133 auth_context->flags &= ~removeflags;
139 krb5_auth_context auth_context,
142 if ((flags & KRB5_AUTH_CONTEXT_CLEAR_LOCAL_ADDR) && auth_context->local_address) {
143 krb5_free_address(context, auth_context->local_address);
144 free(auth_context->local_address);
145 auth_context->local_address = NULL;
147 if ((flags & KRB5_AUTH_CONTEXT_CLEAR_REMOTE_ADDR) && auth_context->remote_address) {
148 krb5_free_address(context, auth_context->remote_address);
149 free(auth_context->remote_address);
150 auth_context->remote_address = NULL;
156 krb5_auth_context auth_context,
161 if (auth_context->local_address)
162 krb5_free_address (context, auth_context->local_address);
164 if ((auth_context->local_address = malloc(sizeof(krb5_address))) == NULL)
166 krb5_copy_address(context, local_addr, auth_context->local_address);
169 if (auth_context->remote_address)
170 krb5_free_address (context, auth_context->remote_address);
172 if ((auth_context->remote_address = malloc(sizeof(krb5_address))) == NULL)
174 krb5_copy_address(context, remote_addr, auth_context->remote_address);
181 krb5_auth_context auth_context,
193 if (auth_context->local_address == NULL) {
205 krb5_sockaddr2port (context, local, &auth_context->local_port);
207 auth_context->local_port = 0;
223 krb5_sockaddr2port (context, remote, &auth_context->remote_port);
225 auth_context->remote_port = 0;
229 auth_context,
243 krb5_auth_context auth_context,
248 if(auth_context->local_address == NULL)
250 if(auth_context->remote_address == NULL)
252 return krb5_auth_con_genaddrs(context, auth_context, fd, flags);
257 krb5_auth_context auth_context,
269 auth_context->local_address,
282 auth_context->remote_address,
301 krb5_auth_context auth_context,
304 return copy_key(context, auth_context->keyblock, keyblock);
309 krb5_auth_context auth_context,
312 return copy_key(context, auth_context->local_subkey, keyblock);
318 krb5_auth_context auth_context,
321 return copy_key(context, auth_context->remote_subkey, keyblock);
326 krb5_auth_context auth_context,
329 if(auth_context->keyblock)
330 krb5_free_keyblock(context, auth_context->keyblock);
331 return copy_key(context, keyblock, &auth_context->keyblock);
336 krb5_auth_context auth_context,
339 if(auth_context->local_subkey)
340 krb5_free_keyblock(context, auth_context->local_subkey);
341 return copy_key(context, keyblock, &auth_context->local_subkey);
346 krb5_auth_context auth_context,
353 (krb5_enctype)auth_context->keytype,
357 if(auth_context->local_subkey)
358 krb5_free_keyblock(context, auth_context->local_subkey);
359 auth_context->local_subkey = subkey;
366 krb5_auth_context auth_context,
369 if(auth_context->remote_subkey)
370 krb5_free_keyblock(context, auth_context->remote_subkey);
371 return copy_key(context, keyblock, &auth_context->remote_subkey);
376 krb5_auth_context auth_context,
379 auth_context->cksumtype = cksumtype;
385 krb5_auth_context auth_context,
388 *cksumtype = auth_context->cksumtype;
394 krb5_auth_context auth_context,
397 auth_context->keytype = keytype;
403 krb5_auth_context auth_context,
406 *keytype = auth_context->keytype;
413 krb5_auth_context auth_context,
416 if(auth_context->keyblock)
417 krb5_free_keyblock(context, auth_context->keyblock);
418 ALLOC(auth_context->keyblock, 1);
419 if(auth_context->keyblock == NULL)
421 auth_context->keyblock->keytype = etype;
427 krb5_auth_context auth_context,
436 krb5_auth_context auth_context,
439 *seqnumber = auth_context->local_seqnumber;
445 krb5_auth_context auth_context,
448 auth_context->local_seqnumber = seqnumber;
454 krb5_auth_context auth_context,
457 *seqnumber = auth_context->remote_seqnumber;
463 krb5_auth_context auth_context,
466 auth_context->remote_seqnumber = seqnumber;
473 krb5_auth_context auth_context,
482 return copy_Authenticator(auth_context->authenticator,
502 krb5_auth_context auth_context,
505 if(auth_context->keyblock)
506 krb5_free_keyblock(context, auth_context->keyblock);
507 return krb5_copy_keyblock(context, keyblock, &auth_context->keyblock);
512 krb5_auth_context auth_context,
515 *rcache = auth_context->rcache;
521 krb5_auth_context auth_context,
524 auth_context->rcache = rcache;
530 krb5_auth_context auth_context,
536 if (auth_context->auth_data == NULL) {
537 auth_context->auth_data = calloc(1, sizeof(*auth_context->auth_data));
538 if (auth_context->auth_data == NULL)
545 return add_AuthorizationData(auth_context->auth_data, &el);
553 krb5_auth_context auth_context)
561 krb5_auth_context auth_context,