a83b802bad
These are the start of a lot of work to clean up the FreeBSD eBones code. these changes include, but are not limited to: - Create prototypes for all the library routines - Make all the libraries compile clean with -Wall set - Fix numerous small bugs shown up in the above process - Prepare the code for libdes's removal to secure/ - add register, registerd and make_keypair to the make Lots more will follow in days to come. OK'ed by: rgrimes
35 lines
788 B
C
35 lines
788 B
C
/*
|
|
* Copyright 1987, 1988 by the Massachusetts Institute of Technology.
|
|
* For copying and distribution information, please see the file
|
|
* <Copyright.MIT>.
|
|
*
|
|
* from: get_tf_realm.c,v 4.2 90/01/02 13:40:19 jtkohl Exp $
|
|
* $Id: get_tf_realm.c,v 1.3 1995/07/18 16:38:44 mark Exp $
|
|
*/
|
|
|
|
#if 0
|
|
#ifndef lint
|
|
static char rcsid[] =
|
|
"$Id: get_tf_realm.c,v 1.3 1995/07/18 16:38:44 mark Exp $";
|
|
#endif /* lint */
|
|
#endif
|
|
|
|
#include <krb.h>
|
|
#include <strings.h>
|
|
|
|
/*
|
|
* This file contains a routine to extract the realm of a kerberos
|
|
* ticket file.
|
|
*/
|
|
|
|
/*
|
|
* krb_get_tf_realm() takes two arguments: the name of a ticket
|
|
* and a variable to store the name of the realm in.
|
|
*
|
|
*/
|
|
|
|
int krb_get_tf_realm(char *ticket_file, char *realm)
|
|
{
|
|
return(krb_get_tf_fullname(ticket_file, 0, 0, realm));
|
|
}
|