blob: 5da1fac0712e433f0b43387b8197cadf1907d864 (
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
|
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* 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);
}
|