+2002-04-05 Ken Raeburn <raeburn@mit.edu>
+
+ * kdc5_hammer.c (main): Delete '-k' option which didn't do
+ anything.
+ (usage): Don't display '-k' option.
+
2001-10-09 Ken Raeburn <raeburn@mit.edu>
* kdb5_hammer.c: Make prototypes unconditional.
fprintf(stderr,
"usage: %s -p prefix -n num_to_check [-c cachename] [-r realmname]\n",
who);
- fprintf(stderr, "\t [-D depth] [-k enctype]\n");
+ fprintf(stderr, "\t [-D depth]\n");
fprintf(stderr, "\t [-P preauth type] [-R repeat_count] [-t] [-b] [-v] \n");
exit(status);
char ctmp[4096], ctmp2[BUFSIZ], stmp[4096], stmp2[BUFSIZ];
krb5_principal client_princ;
krb5_error_code retval;
- krb5_enctype enctype = DEFAULT_KDC_ENCTYPE;
krb5_init_context(&test_context);
n_tried = 0;
errors = 0;
- while ((option = getopt(argc, argv, "D:p:n:c:R:k:P:e:bvr:t")) != -1) {
+ while ((option = getopt(argc, argv, "D:p:n:c:R:P:e:bvr:t")) != -1) {
switch (option) {
case 't':
do_timer = 1;
case 'n': /* how many to check */
num_to_check = atoi(optarg);
break;
- case 'k':
- enctype = atoi(optarg);
- break;
case 'P':
patypedata[0] = atoi(optarg);
patype = patypedata;
}
}
- if (!valid_enctype(enctype)) {
- com_err(prog, KRB5_PROG_ETYPE_NOSUPP,
- "while setting up enctype %d", enctype);
- exit(1);
- }
-
if (ccache == NULL) {
if ((code = krb5_cc_default(test_context, &ccache))) {
com_err(prog, code, "while getting default ccache");