From: Theodore Tso Date: Wed, 30 Sep 1992 14:29:59 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: krb5-1.0-beta2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b6e248daa1e4ee80222847363eab933cefd2d4e3;p=krb5.git *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2457 dc483132-0cff-0310-8789-dd5450dbe970 --- 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); + } +}