* cygserver_setpwd.h (setlsapwd): Add username parameter to declaration.

* external.cc (cygwin_internal): In the CW_SET_PRIV_KEY case, fetch
	additional username parameter.
	* setlsapwd.cc (setlsapwd): Add username parameter.  Allow admin to
	set the hidden password for other users.
This commit is contained in:
Corinna Vinschen
2011-04-04 09:04:00 +00:00
parent 225b37131a
commit 1db2e3fbfb
4 changed files with 32 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
/* cygserver_setpwd.h: Set LSA private data password for current user.
Copyright 2008 Red Hat, Inc.
Copyright 2008, 2011 Red Hat, Inc.
This file is part of Cygwin.
@@ -47,7 +47,7 @@ public:
};
#ifdef __INSIDE_CYGWIN__
unsigned long setlsapwd (const char *passwd);
unsigned long setlsapwd (const char *passwd, const char *username);
#endif
#endif /* __CYGSERVER_SETPWD_H__ */