1994-09-30 14:50:09 +00:00
|
|
|
/*
|
|
|
|
* 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 $
|
1995-08-25 22:52:32 +00:00
|
|
|
* $Id: get_tf_realm.c,v 1.3 1995/07/18 16:38:44 mark Exp $
|
1994-09-30 14:50:09 +00:00
|
|
|
*/
|
|
|
|
|
1995-08-25 22:52:32 +00:00
|
|
|
#if 0
|
1994-09-30 14:50:09 +00:00
|
|
|
#ifndef lint
|
|
|
|
static char rcsid[] =
|
1995-08-25 22:52:32 +00:00
|
|
|
"$Id: get_tf_realm.c,v 1.3 1995/07/18 16:38:44 mark Exp $";
|
1994-09-30 14:50:09 +00:00
|
|
|
#endif /* lint */
|
1995-08-25 22:52:32 +00:00
|
|
|
#endif
|
1994-09-30 14:50:09 +00:00
|
|
|
|
|
|
|
#include <krb.h>
|
|
|
|
#include <strings.h>
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This file contains a routine to extract the realm of a kerberos
|
|
|
|
* ticket file.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1995-05-30 06:41:30 +00:00
|
|
|
* krb_get_tf_realm() takes two arguments: the name of a ticket
|
1994-09-30 14:50:09 +00:00
|
|
|
* and a variable to store the name of the realm in.
|
1995-05-30 06:41:30 +00:00
|
|
|
*
|
1994-09-30 14:50:09 +00:00
|
|
|
*/
|
|
|
|
|
1995-08-25 22:52:32 +00:00
|
|
|
int krb_get_tf_realm(char *ticket_file, char *realm)
|
1994-09-30 14:50:09 +00:00
|
|
|
{
|
|
|
|
return(krb_get_tf_fullname(ticket_file, 0, 0, realm));
|
|
|
|
}
|