blob: 32303ace81a5dc3d7767151518c823a9b30eac47 (
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
29
30
31
32
33
34
|
/*
* $Source$
* $Author$
*
* Copyright 1990 by the Massachusetts Institute of Technology.
*
* For copying and distribution information, please see the file
* <krb5/mit-copyright.h>.
*
* Dump out a krb5_data to stderr (for debugging purposes).
*/
#if !defined(lint) && !defined(SABER)
static char rcsid_dump_c[] =
"$Id$";
#endif /* !lint & !SABER */
#include <krb5/copyright.h>
#include <stdio.h>
#include <krb5/krb5.h>
void dump_data (data)
krb5_data *data;
{
unsigned char *ptr = (unsigned char *)data->data;
int i;
for (i=0; i<data->length; i++) {
fprintf(stderr, "%02x ", ptr[i]);
if ((i % 16) == 15) fprintf(stderr, "\n");
}
fprintf(stderr, "\n");
}
|