aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/security.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2008-07-30 12:10:20 +0000
committerCorinna Vinschen <corinna@vinschen.de>2008-07-30 12:10:20 +0000
commitb54881352d5c4d1c179726e52d00cc50f35a2080 (patch)
tree992ebd43e672facc72c850c995e713f31523d301 /winsup/cygwin/security.h
parent79ea8bbb10421f19c016e44916124d9bb8efbeda (diff)
downloadnewlib-b54881352d5c4d1c179726e52d00cc50f35a2080.zip
newlib-b54881352d5c4d1c179726e52d00cc50f35a2080.tar.gz
newlib-b54881352d5c4d1c179726e52d00cc50f35a2080.tar.bz2
* sec_auth.cc (extract_nt_dom_user): Return domain and user name as
WCHAR. (cygwin_logon_user): Accommodate above change. Convert password to WCHAR and call LogonUserW. * external.cc (cygwin_internal): Accommodate above change. * security.h (extract_nt_dom_user): Change prototype accordingly.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r--winsup/cygwin/security.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h
index 42e75e7..9be7a28 100644
--- a/winsup/cygwin/security.h
+++ b/winsup/cygwin/security.h
@@ -375,7 +375,7 @@ bool verify_token (HANDLE token, cygsid &usersid, user_groups &groups, bool *pin
bool get_server_groups (cygsidlist &grp_list, PSID usersid, struct passwd *pw);
/* Extract U-domain\user field from passwd entry. */
-void extract_nt_dom_user (const struct passwd *pw, char *domain, char *user);
+void extract_nt_dom_user (const struct passwd *pw, PWCHAR domain, PWCHAR user);
/* Get default logonserver for a domain. */
bool get_logon_server (PWCHAR domain, PWCHAR wserver, bool rediscovery);