blob: 403d60de8f8072c1c5539a98a830bb4f260d6175 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/*
* tests/hammer/pp.c
*
* Copyright 1991 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* For copying and distribution information, please see the file
* <krb5/copyright.h>.
*
*/
#include "krb5.h"
void
print_principal(p)
krb5_principal p;
{
char *buf;
krb5_error_code retval;
if (retval = krb5_unparse_name(p, &buf)) {
com_err("DEBUG: Print_principal", retval,
"while unparsing name");
exit(1);
}
printf("%s\n", buf);
free(buf);
}
|