[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
-Wall for passwd
Sorry Hugh, i don't know if this one falls under the same category as tip.
it didn't go thru the first time so here's the repost:
two flavors: one similar to the one for tip.
if you want i have another one which adds a header... you choose
i'll include the simple one here.
passwd-standalone.patch
-----------------------
--- krb5_passwd.c.old Tue May 7 04:52:37 2002
+++ krb5_passwd.c Tue May 7 04:52:48 2002
@@ -50,6 +50,7 @@
#include <util.h>
#include <err.h>
#include <kerberosV/krb5.h>
+#include <openssl/des.h>
/* RCSID("$KTH: kpasswd.c,v 1.23 2000/12/31 07:48:34 assar Exp $"); */
--- krb_passwd.c.old Tue May 7 04:52:37 2002
+++ krb_passwd.c Tue May 7 04:52:48 2002
@@ -63,6 +63,8 @@
char realm[REALM_SZ];
extern void usage(int value);
+extern int get_pw_new_pwd(char *pword, int pwlen, krb_principal *pr, int print_realm);
+
int
krb_passwd(int argc, char **argv)
--- passwd.c.old Tue May 7 04:52:37 2002
+++ passwd.c Tue May 7 05:17:27 2002
@@ -71,6 +71,7 @@
extern int yp_passwd(char *);
extern int krb_passwd(int, char **);
extern int krb5_passwd(int, char **);
+extern int _yp_check(char **);
void usage(int value);
@@ -82,7 +83,9 @@
extern int optind;
int ch;
char *username;
+#ifdef YP
int status = 0;
+#endif
#if defined(KERBEROS) || defined(KERBEROS5)
extern char realm[];