From: Ezra Peisach Date: Mon, 1 May 1995 15:32:10 +0000 (+0000) Subject: Call to krb5_read_password takes as an argument an int* not an int to represent the... X-Git-Tag: krb5-1.0-beta5~87 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c36e517ea65f4334eaac84423b9d2c2e5c5418c3;p=krb5.git Call to krb5_read_password takes as an argument an int* not an int to represent the length of the buffer git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5666 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/des425/ChangeLog b/src/lib/des425/ChangeLog index f15d5e40b..4fb8a9aa8 100644 --- a/src/lib/des425/ChangeLog +++ b/src/lib/des425/ChangeLog @@ -1,3 +1,8 @@ +Mon May 1 11:29:37 1995 Ezra Peisach (epeisach@kangaroo.mit.edu) + + * read_passwd.c: (des_read_pw_string): Call to krb5_read_password + wants a pointer to the length of the buffer. + Fri Apr 28 13:35:25 1995 Theodore Y. Ts'o * read_passwd.c (des_read_pw_string): Add des_read_pw_string, diff --git a/src/lib/des425/read_passwd.c b/src/lib/des425/read_passwd.c index a58a7a449..dd9f4965e 100644 --- a/src/lib/des425/read_passwd.c +++ b/src/lib/des425/read_passwd.c @@ -67,11 +67,12 @@ des_read_password/*_v4_compat_crock*/(k,prompt,verify) krb5_error_code des_read_pw_string/*_v4_compat_crock*/(buf, bufsize, prompt, prompt2) char *buf; - int *bufsize; + int bufsize; char *prompt; char *prompt2; { krb5_error_code retval; + int i = bufsize; if (!krb4_global_context) { retval = krb5_init_context(&krb4_global_context); @@ -80,7 +81,7 @@ des_read_pw_string/*_v4_compat_crock*/(buf, bufsize, prompt, prompt2) } retval = krb5_read_password(krb4_global_context, prompt, prompt2, - buf, bufsize); + buf, &i); return retval; }