From: Ezra Peisach Date: Fri, 28 Jul 2000 14:26:47 +0000 (+0000) Subject: * kdc5_hammer.c: Move global (to file) enctype into main to prevent X-Git-Tag: krb5-1.3-alpha1~1952 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c7d57c98ff6e9e90774070c08fda35b7c1e7dcb3;p=krb5.git * kdc5_hammer.c: Move global (to file) enctype into main to prevent being shadowed in other routines. Remove unused krb5_parse_lifetime(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12588 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/tests/hammer/ChangeLog b/src/tests/hammer/ChangeLog index aed2f63df..9e0c77dae 100644 --- a/src/tests/hammer/ChangeLog +++ b/src/tests/hammer/ChangeLog @@ -1,3 +1,9 @@ +2000-07-28 Ezra Peisach + + * kdc5_hammer.c: Move global (to file) enctype into main to prevent + being shadowed in other routines. Remove unused krb5_parse_lifetime(). + + 2000-05-11 Nalin Dahyabhai * kdc5_hammer.c (main): Make sure buffer 'prefix' is null-terminated. diff --git a/src/tests/hammer/kdc5_hammer.c b/src/tests/hammer/kdc5_hammer.c index 6429a38ed..ce415762d 100644 --- a/src/tests/hammer/kdc5_hammer.c +++ b/src/tests/hammer/kdc5_hammer.c @@ -52,15 +52,6 @@ static int brief; static char *cur_realm = 0; static int do_timer = 0; -krb5_error_code -krb5_parse_lifetime (time, len) - char *time; - long *len; -{ - *len = atoi (time) * 60 * 60; /* XXX stub version */ - return 0; -} - krb5_data tgtname = { 0, KRB5_TGS_NAME_SIZE, @@ -98,7 +89,6 @@ int status; static krb5_preauthtype * patype = NULL, patypedata[2] = { 0, -1 }; static krb5_context test_context; -static krb5_enctype enctype; struct timeval tstart_time, tend_time; struct timezone dontcare; @@ -132,6 +122,7 @@ main(argc, argv) char ctmp[4096], ctmp2[BUFSIZ], stmp[4096], stmp2[BUFSIZ]; krb5_principal client_princ; krb5_error_code retval; + krb5_enctype enctype; krb5_init_context(&test_context);