diff options
| -rw-r--r-- | src/tests/hammer/pp.c | 33 | ||||
| -rw-r--r-- | src/tests/verify/pkey.c | 29 |
2 files changed, 62 insertions, 0 deletions
diff --git a/src/tests/hammer/pp.c b/src/tests/hammer/pp.c new file mode 100644 index 000000000..288d45bb3 --- /dev/null +++ b/src/tests/hammer/pp.c @@ -0,0 +1,33 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * For copying and distribution information, please see the file + * <krb5/copyright.h>. + * + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_pp_c[] = +"$Id$"; +#endif /* !lint & !SABER */ +#include <krb5/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); +} diff --git a/src/tests/verify/pkey.c b/src/tests/verify/pkey.c new file mode 100644 index 000000000..52f48e58a --- /dev/null +++ b/src/tests/verify/pkey.c @@ -0,0 +1,29 @@ +/* + * $Source$ + * $Author$ + * + * Copyright 1991 by the Massachusetts Institute of Technology. + * All Rights Reserved. + * + * For copying and distribution information, please see the file + * <krb5/copyright.h>. + * + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_pkey_c [] = +"$Id$"; +#endif /* !lint & !SABER */ +#include <stdio.h> + +void pkey(k) + unsigned char *k; +{ + int i; + unsigned int foo; + + for (i = 0 ; i < 8 ; i++) { + foo = *k++; + fprintf(stderr, "%x ", foo); + } +} |
