From b6e248daa1e4ee80222847363eab933cefd2d4e3 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 30 Sep 1992 14:29:59 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2457 dc483132-0cff-0310-8789-dd5450dbe970 --- src/tests/hammer/pp.c | 33 +++++++++++++++++++++++++++++++++ src/tests/verify/pkey.c | 29 +++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 src/tests/hammer/pp.c create mode 100644 src/tests/verify/pkey.c 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 + * . + * + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_pp_c[] = +"$Id$"; +#endif /* !lint & !SABER */ +#include + +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 + * . + * + */ + +#if !defined(lint) && !defined(SABER) +static char rcsid_pkey_c [] = +"$Id$"; +#endif /* !lint & !SABER */ +#include + +void pkey(k) + unsigned char *k; +{ + int i; + unsigned int foo; + + for (i = 0 ; i < 8 ; i++) { + foo = *k++; + fprintf(stderr, "%x ", foo); + } +} -- 2.26.2