diff options
author | Theodore Tso <tytso@mit.edu> | 1992-09-30 14:29:59 +0000 |
---|---|---|
committer | Theodore Tso <tytso@mit.edu> | 1992-09-30 14:29:59 +0000 |
commit | b6e248daa1e4ee80222847363eab933cefd2d4e3 (patch) | |
tree | 454e7720b31e77301fcad09596341a6e8b21ee77 | |
parent | 97b9bda15f53d3c961f951fa0ccc3496c9729265 (diff) | |
download | krb5-b6e248daa1e4ee80222847363eab933cefd2d4e3.tar.gz krb5-b6e248daa1e4ee80222847363eab933cefd2d4e3.tar.xz krb5-b6e248daa1e4ee80222847363eab933cefd2d4e3.zip |
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2457 dc483132-0cff-0310-8789-dd5450dbe970
-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 0000000000..288d45bb3b --- /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 0000000000..52f48e58a2 --- /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); + } +} |