From 6d66d7d80ac52857752e361af9c74dc8782423b0 Mon Sep 17 00:00:00 2001 From: Ezra Peisach Date: Tue, 17 Oct 2000 23:07:03 +0000 Subject: [PATCH] * adm_conn.c, kpasswd.c: Argument to krb5_read_password takes an unsigned int. * kadm5_defs.h, main.c (pwd_change): Argument err_str_len changed to unsigned int. (Argument to kadm5_chpass_principal_util()). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12794 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/v5passwdd/ChangeLog | 8 ++++++++ src/kadmin/v5passwdd/adm_conn.c | 2 +- src/kadmin/v5passwdd/kadm5_defs.h | 2 +- src/kadmin/v5passwdd/kpasswd.c | 2 +- src/kadmin/v5passwdd/main.c | 2 +- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/kadmin/v5passwdd/ChangeLog b/src/kadmin/v5passwdd/ChangeLog index 17abeb71d..09dd46121 100644 --- a/src/kadmin/v5passwdd/ChangeLog +++ b/src/kadmin/v5passwdd/ChangeLog @@ -1,3 +1,11 @@ +2000-10-17 Ezra Peisach + + * adm_conn.c, kpasswd.c: Argument to krb5_read_password + takes an unsigned int. + + * kadm5_defs.h, main.c (pwd_change): Argument err_str_len changed + to unsigned int. (Argument to kadm5_chpass_principal_util()). + 2000-07-03 Ezra Peisach * Makefile.in: v5passwd does not depend on the kadm5 diff --git a/src/kadmin/v5passwdd/adm_conn.c b/src/kadmin/v5passwdd/adm_conn.c index 2a3ea585e..e19343a08 100644 --- a/src/kadmin/v5passwdd/adm_conn.c +++ b/src/kadmin/v5passwdd/adm_conn.c @@ -191,7 +191,7 @@ kadm_get_creds(kcontext, ccache, client, creds, prompt, oldpw, tlife) char *client_name; krb5_error_code kret; krb5_address **my_addresses; - int old_pwsize; + unsigned int old_pwsize; krb5_creds tcreds; /* Initialize */ diff --git a/src/kadmin/v5passwdd/kadm5_defs.h b/src/kadmin/v5passwdd/kadm5_defs.h index 17ec2e595..92ec7f341 100644 --- a/src/kadmin/v5passwdd/kadm5_defs.h +++ b/src/kadmin/v5passwdd/kadm5_defs.h @@ -260,7 +260,7 @@ krb5_int32 pwd_change krb5_data *, krb5_data *, char [], - int)); + unsigned int)); #if 0 diff --git a/src/kadmin/v5passwdd/kpasswd.c b/src/kadmin/v5passwdd/kpasswd.c index f8a04ae8b..7d57524cd 100644 --- a/src/kadmin/v5passwdd/kpasswd.c +++ b/src/kadmin/v5passwdd/kpasswd.c @@ -417,7 +417,7 @@ main(argc, argv) /* Now - Actually change the password. */ for (npass_tries = 1; npass_tries <= KPWD_MAX_TRIES; npass_tries++) { - int npass_len; + unsigned int npass_len; npass_len = KRB5_ADM_MAX_PASSWORD_LEN; if (!(kret = krb5_read_password(kcontext, diff --git a/src/kadmin/v5passwdd/main.c b/src/kadmin/v5passwdd/main.c index cec5bf821..9a4409db4 100644 --- a/src/kadmin/v5passwdd/main.c +++ b/src/kadmin/v5passwdd/main.c @@ -238,7 +238,7 @@ pwd_change(kcontext, debug_level, auth_context, ticket, krb5_data *olddata; krb5_data *newdata; char err_str[]; - int err_str_len; + unsigned int err_str_len; { kadm5_ret_t ret; krb5_int32 now; -- 2.26.2