*** empty log message ***
authorTheodore Tso <tytso@mit.edu>
Wed, 30 Sep 1992 14:29:59 +0000 (14:29 +0000)
committerTheodore Tso <tytso@mit.edu>
Wed, 30 Sep 1992 14:29:59 +0000 (14:29 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2457 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/hammer/pp.c [new file with mode: 0644]
src/tests/verify/pkey.c [new file with mode: 0644]

diff --git a/src/tests/hammer/pp.c b/src/tests/hammer/pp.c
new file mode 100644 (file)
index 0000000..288d45b
--- /dev/null
@@ -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 (file)
index 0000000..52f48e5
--- /dev/null
@@ -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);
+  }
+}