diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2015-01-21 16:31:38 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-01-21 16:31:38 +0000 |
commit | f485f162769910e0733ff92830706e3c5f4c1a1d (patch) | |
tree | 5d5435e9c3d8fddde7f1a50a0ff9f5a8b6e34306 | |
parent | a098aad30b58da948abed1ca20956b8e10ea3c03 (diff) | |
download | newlib-f485f162769910e0733ff92830706e3c5f4c1a1d.zip newlib-f485f162769910e0733ff92830706e3c5f4c1a1d.tar.gz newlib-f485f162769910e0733ff92830706e3c5f4c1a1d.tar.bz2 |
* sec_auth.cc (get_logon_server): Constify domain parameter.
* security.h (get_logon_server): Same in prototype.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/sec_auth.cc | 4 | ||||
-rw-r--r-- | winsup/cygwin/security.h | 4 |
3 files changed, 9 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4017e1d..9aa56f2 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2015-01-21 Corinna Vinschen <corinna@vinschen.de> + + * sec_auth.cc (get_logon_server): Constify domain parameter. + * security.h (get_logon_server): Same in prototype. + 2015-01-20 Corinna Vinschen <corinna@vinschen.de> * common.din (sockatmark): Export. diff --git a/winsup/cygwin/sec_auth.cc b/winsup/cygwin/sec_auth.cc index 2906b71..78d47cb 100644 --- a/winsup/cygwin/sec_auth.cc +++ b/winsup/cygwin/sec_auth.cc @@ -1,7 +1,7 @@ /* sec_auth.cc: NT authentication functions Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, - 2008, 2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc. + 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc. This file is part of Cygwin. @@ -312,7 +312,7 @@ lsa_close_policy (HANDLE lsa) } bool -get_logon_server (PWCHAR domain, WCHAR *server, ULONG flags) +get_logon_server (PCWSTR domain, PWCHAR server, ULONG flags) { DWORD ret; PDOMAIN_CONTROLLER_INFOW pci; diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index 50b5b3c..0800387 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -1,7 +1,7 @@ /* security.h: security declarations Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, - 2011, 2012, 2013, 2014 Red Hat, Inc. + 2011, 2012, 2013, 2014, 2015 Red Hat, Inc. This file is part of Cygwin. @@ -470,7 +470,7 @@ 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, PWCHAR domain, PWCHAR user); /* Get default logonserver for a domain. */ -bool get_logon_server (PWCHAR domain, PWCHAR wserver, ULONG flags); +bool get_logon_server (PCWSTR domain, PWCHAR wserver, ULONG flags); /* Fetch user profile path from registry, if it already exists. */ PWCHAR get_user_profile_directory (PCWSTR sidstr, PWCHAR path, SIZE_T path_len); |