freebsd-nq/eBones/krb/get_tf_realm.c
Geoff Rehmet 60643d379b Initial import of eBones.
(Including all changes for FreeBSD - importing the original eBones distribution
would be too complex at this stage, since I don't have access to Piero's 
CVS.)
(If you want to include eBones in your system, don't forget to include
MAKE_EBONES in /etc/make.conf.)
(This stuff is now also suppable from braae.ru.ac.za.)

Bones originally from MIT SIPB.
Original port to FreeBSD 1.x  by Piero Serini.
Moved to FreeBSD 2.0 by Doug Rabson and Geoff Rehmet.
Nice bug fixes from Doug Rabson.
1994-09-30 14:50:09 +00:00

35 lines
805 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.2 1994/07/19 19:25:30 g89r4222 Exp $
*/
#ifndef lint
static char rcsid[] =
"$Id: get_tf_realm.c,v 1.2 1994/07/19 19:25:30 g89r4222 Exp $";
#endif /* lint */
#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.
*
*/
krb_get_tf_realm(ticket_file, realm)
char *ticket_file;
char *realm;
{
return(krb_get_tf_fullname(ticket_file, 0, 0, realm));
}