/*	$NetBSD: get_tf_realm.c,v 1.4 1998/02/04 18:24:04 thorpej Exp $	*/

/*
 * Copyright 1987, 1988 by the Massachusetts Institute of Technology.
 * For copying and distribution information, please see the file
 * <kerberosIV/mit-copyright.h>.
 *
 *	from: get_tf_realm.c,v 4.2 90/01/02 13:40:19 jtkohl Exp $
 */

#if 0
#ifndef lint
static char rcsid[] =
"$NetBSD: get_tf_realm.c,v 1.4 1998/02/04 18:24:04 thorpej Exp $";
#endif /* lint */
#endif

#include <krb.h>
#include <string.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(ticket_file, realm)
  char *ticket_file;
  char *realm;
{
    return(krb_get_tf_fullname(ticket_file, 0, 0, realm));
}
