get_admhst.c revision 004388ebfdfe2ed7dfd2d153a876dfcc22d2c006
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#pragma ident "%Z%%M% %I% %E% SMI"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Openvision retains the copyright to derivative works of
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * this source code. Do *NOT* create a derivative of this
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * source code before consulting with your legal department.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Do *NOT* integrate *ANY* of this source code into another
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * product before consulting with your legal department.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * For further information, read the top-level Openvision
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * copyright which is contained in the top-level MIT Kerberos
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * copyright.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * $Source: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/lib/kadm5/get_admhst.c,v $
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * $Author: marc $
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * Copyright 1985, 1986, 1987, 1988 by the Massachusetts Institute
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * of Technology.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin * For copying and distribution information, please see the file
* <mit-copyright.h>.
#ifndef lint
static char *rcsid =
#include <stdio.h>
#include <string.h>
krb5_get_admhst(char *h, char *r, int n)
int ret;
if(r == NULL) {
return ret;
r = realm;
if(realm)
if(realm)
if(realm)