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>
24 /* Turn a principal, instance, realm triple into a single non-ambiguous
25 * string. This is the inverse of kname_parse(). It returns a pointer
26 * to a static buffer, or NULL on error.
29 char *mr_kname_unparse(char *p, char *i, char *r)
31 static char name[MAX_K_NAME_SZ];
35 if (!p || strlen(p) > ANAME_SZ)
60 if (strlen(i) > INST_SZ)
86 if (!r || strlen(r) > REALM_SZ)