3 * Don't know why this function is not in libkrb.a. It's the inverse
4 * of kname_parse() which is there.
6 * Copyright (C) 1993-1998 by the Massachusetts Institute of Technology
7 * For copying and distribution information, please see the file
11 #include <mit-copyright.h>
21 /* Turn a principal, instance, realm triple into a single non-ambiguous
22 * string. This is the inverse of kname_parse(). It returns a pointer
23 * to a static buffer, or NULL on error.
26 char *kname_unparse(char *p, char *i, char *r)
28 static char name[MAX_K_NAME_SZ];
32 if (!p || strlen(p) > ANAME_SZ)
57 if (strlen(i) > INST_SZ)
83 if (!r || strlen(r) > REALM_SZ)