summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorChris Provenzano <proven@mit.edu>1995-02-08 01:37:12 +0000
committerChris Provenzano <proven@mit.edu>1995-02-08 01:37:12 +0000
commitc415df7456d55016cf565ba27ef38f25ea5416fd (patch)
tree5f1acabac018a3cb0ee6b2f6ff726705b07ea3e8 /src/tests
parent64b801ef375d8bf4458e5cc2ae57d8a40d3af2d4 (diff)
downloadkrb5-c415df7456d55016cf565ba27ef38f25ea5416fd.tar.gz
krb5-c415df7456d55016cf565ba27ef38f25ea5416fd.tar.xz
krb5-c415df7456d55016cf565ba27ef38f25ea5416fd.zip
* 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4924 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/hammer/ChangeLog6
-rw-r--r--src/tests/hammer/kdc5_hammer.c11
2 files changed, 10 insertions, 7 deletions
diff --git a/src/tests/hammer/ChangeLog b/src/tests/hammer/ChangeLog
index 127b3b057..b03e90377 100644
--- a/src/tests/hammer/ChangeLog
+++ b/src/tests/hammer/ChangeLog
@@ -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
diff --git a/src/tests/hammer/kdc5_hammer.c b/src/tests/hammer/kdc5_hammer.c
index 678773321..8b7a7ea4b 100644
--- a/src/tests/hammer/kdc5_hammer.c
+++ b/src/tests/hammer/kdc5_hammer.c
@@ -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);