* kdc5_hammer.c Removed krb5_keytype, changed krb5_enctype to
authorChris Provenzano <proven@mit.edu>
Wed, 8 Feb 1995 01:37:12 +0000 (01:37 +0000)
committerChris Provenzano <proven@mit.edu>
Wed, 8 Feb 1995 01:37:12 +0000 (01:37 +0000)
                krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *
                for krb5_get_in_tkt_with_password() rotuine.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4924 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/hammer/ChangeLog
src/tests/hammer/kdc5_hammer.c

index 127b3b0574596c146f015dd007b0c925a0a3468a..b03e90377ae062a644936e463a8f8f790d61edb2 100644 (file)
@@ -1,3 +1,9 @@
+Mon Feb 06 17:19:04 1995 Chris Provenzano  (proven@mit.edu)
+
+        * kdc5_hammer.c Removed krb5_keytype, changed krb5_enctype to
+                krb5_enctype *, changed krb5_preauthtype to krb5_preauthtype *
+                for krb5_get_in_tkt_with_password() rotuine.
+
 Fri Feb  3 11:45:23 1995  Theodore Y. Ts'o  (tytso@dcl)
 
        * kdc_hammer.c (get_server_key): Add keytype parameter
index 678773321f1b94ed501cdbfb525990530f015053..8b7a7ea4b1b61bd6f50c10946f3eefd27e19e377 100644 (file)
@@ -88,8 +88,8 @@ int status;
     exit(status);
 }
 
+static krb5_preauthtype * patype = NULL, patypedata[2] = { 0, -1 };
 static krb5_enctype etype = 0xffff;
-static krb5_preauthtype patype = KRB5_PADATA_NONE;
 static krb5_context test_context;
 static krb5_keytype keytype;
 
@@ -158,7 +158,8 @@ main(argc, argv)
            etype = atoi(optarg);
            break;
        case 'P':
-           patype = atoi(optarg);
+           patypedata[0] = atoi(optarg);
+           patype = patypedata;
            break;
        case 'c':
            if (ccache == NULL) {
@@ -444,11 +445,7 @@ int get_tgt (context, p_client_str, p_client, ccache)
     my_creds.times.renew_till = 0;
 
     code = krb5_get_in_tkt_with_password(context, options, my_addresses,
-                                        patype,
-                                        etype,
-                                        keytype,
-                                        p_client_str,
-                                        ccache,
+                                        NULL, patype, p_client_str, ccache,
                                         &my_creds, 0);
     my_creds.server = my_creds.client = 0;
     krb5_free_principal(context, tgt_server);