• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/crypto/heimdal/lib/krb5/

Lines Matching refs:auth_context

38 		   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->remote_address);
79 free(auth_context->remote_address);
81 krb5_free_keyblock(context, auth_context->keyblock);
82 krb5_free_keyblock(context, auth_context->remote_subkey);
83 krb5_free_keyblock(context, auth_context->local_subkey);
84 free (auth_context);
91 krb5_auth_context auth_context,
94 auth_context->flags = flags;
101 krb5_auth_context auth_context,
104 *flags = auth_context->flags;
110 krb5_auth_context auth_context,
115 *flags = auth_context->flags;
116 auth_context->flags |= addflags;
122 krb5_auth_context auth_context,
127 *flags = auth_context->flags;
128 auth_context->flags &= ~removeflags;
134 krb5_auth_context auth_context,
139 if (auth_context->local_address)
140 krb5_free_address (context, auth_context->local_address);
142 if ((auth_context->local_address = malloc(sizeof(krb5_address))) == NULL)
144 krb5_copy_address(context, local_addr, auth_context->local_address);
147 if (auth_context->remote_address)
148 krb5_free_address (context, auth_context->remote_address);
150 if ((auth_context->remote_address = malloc(sizeof(krb5_address))) == NULL)
152 krb5_copy_address(context, remote_addr, auth_context->remote_address);
159 krb5_auth_context auth_context,
171 if (auth_context->local_address == NULL) {
183 krb5_sockaddr2port (context, local, &auth_context->local_port);
185 auth_context->local_port = 0;
201 krb5_sockaddr2port (context, remote, &auth_context->remote_port);
203 auth_context->remote_port = 0;
207 auth_context,
221 krb5_auth_context auth_context,
226 if(auth_context->local_address == NULL)
228 if(auth_context->remote_address == NULL)
230 return krb5_auth_con_genaddrs(context, auth_context, fd, flags);
235 krb5_auth_context auth_context,
247 auth_context->local_address,
260 auth_context->remote_address,
279 krb5_auth_context auth_context,
282 return copy_key(context, auth_context->keyblock, keyblock);
287 krb5_auth_context auth_context,
290 return copy_key(context, auth_context->local_subkey, keyblock);
296 krb5_auth_context auth_context,
299 return copy_key(context, auth_context->remote_subkey, keyblock);
304 krb5_auth_context auth_context,
307 if(auth_context->keyblock)
308 krb5_free_keyblock(context, auth_context->keyblock);
309 return copy_key(context, keyblock, &auth_context->keyblock);
314 krb5_auth_context auth_context,
317 if(auth_context->local_subkey)
318 krb5_free_keyblock(context, auth_context->local_subkey);
319 return copy_key(context, keyblock, &auth_context->local_subkey);
324 krb5_auth_context auth_context,
331 auth_context->keytype,
335 if(auth_context->local_subkey)
336 krb5_free_keyblock(context, auth_context->local_subkey);
337 auth_context->local_subkey = subkey;
344 krb5_auth_context auth_context,
347 if(auth_context->remote_subkey)
348 krb5_free_keyblock(context, auth_context->remote_subkey);
349 return copy_key(context, keyblock, &auth_context->remote_subkey);
354 krb5_auth_context auth_context,
357 auth_context->cksumtype = cksumtype;
363 krb5_auth_context auth_context,
366 *cksumtype = auth_context->cksumtype;
372 krb5_auth_context auth_context,
375 auth_context->keytype = keytype;
381 krb5_auth_context auth_context,
384 *keytype = auth_context->keytype;
391 krb5_auth_context auth_context,
394 if(auth_context->keyblock)
395 krb5_free_keyblock(context, auth_context->keyblock);
396 ALLOC(auth_context->keyblock, 1);
397 if(auth_context->keyblock == NULL)
399 auth_context->keyblock->keytype = etype;
405 krb5_auth_context auth_context,
414 krb5_auth_context auth_context,
417 *seqnumber = auth_context->local_seqnumber;
423 krb5_auth_context auth_context,
426 auth_context->local_seqnumber = seqnumber;
432 krb5_auth_context auth_context,
435 *seqnumber = auth_context->remote_seqnumber;
441 krb5_auth_context auth_context,
444 auth_context->remote_seqnumber = seqnumber;
451 krb5_auth_context auth_context,
460 copy_Authenticator(auth_context->authenticator,
478 krb5_auth_context auth_context,
481 if(auth_context->keyblock)
482 krb5_free_keyblock(context, auth_context->keyblock);
483 return krb5_copy_keyblock(context, keyblock, &auth_context->keyblock);
488 krb5_auth_context auth_context,
491 *rcache = auth_context->rcache;
497 krb5_auth_context auth_context,
500 auth_context->rcache = rcache;
508 krb5_auth_context auth_context)
516 krb5_auth_context auth_context,