Call to krb5_read_password takes as an argument an int* not an int to represent the...
authorEzra Peisach <epeisach@mit.edu>
Mon, 1 May 1995 15:32:10 +0000 (15:32 +0000)
committerEzra Peisach <epeisach@mit.edu>
Mon, 1 May 1995 15:32:10 +0000 (15:32 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5666 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/des425/ChangeLog
src/lib/des425/read_passwd.c

index f15d5e40bc55f486273f39c74f88e0b4ca747e67..4fb8a9aa8fe48615d3ea49880fa9ee1eb1fee698 100644 (file)
@@ -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  <tytso@dcl>
 
        * read_passwd.c (des_read_pw_string): Add des_read_pw_string,
index a58a7a4499a9cb35ae80fe4bf6b6dbdbdcfc01d2..dd9f4965e5a1bcd0c08fcab18d27f6ac67fc96ee 100644 (file)
@@ -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;
 }