Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-03-27 11:10:46 +0300
committerDanny Smith <dannysmith@users.sourceforge.net>2003-03-27 11:10:46 +0300
commit2f4be7367ec358897546ec8b5972163b5d7cb816 (patch)
treefce285d33abffc0027b3fcda1a518d9d017e56aa /winsup
parent6c7303cd5f8bc51249d24b50ca775269b74a273c (diff)
* include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW],
TranslateName[AW]): Add prototypes. * lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW], TranslateName[AW]): Add stubs.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/w32api/ChangeLog8
-rw-r--r--winsup/w32api/include/secext.h19
-rw-r--r--winsup/w32api/lib/secur32.def22
-rw-r--r--winsup/w32api/lib/test.c1
4 files changed, 42 insertions, 8 deletions
diff --git a/winsup/w32api/ChangeLog b/winsup/w32api/ChangeLog
index 69b3b6345..de4dbe47c 100644
--- a/winsup/w32api/ChangeLog
+++ b/winsup/w32api/ChangeLog
@@ -1,3 +1,11 @@
+2003-03-27 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/secext.h (GetComputerObjectName[AW],GetUserNameEx[AW],
+ TranslateName[AW]): Add prototypes.
+ * lib/sec32.def (GetComputerObjectName[AW],GetUserNameEx[AW],
+ TranslateName[AW]): Add stubs.
+ * lib/test.c: Include secext.h.
+
2003-03-27 Vladimir Michl <michlv@users.sourceforge.net>
* include/ddk/ndis.h (NdisAllocateSpinLock,NdisFreeSpinLock,
diff --git a/winsup/w32api/include/secext.h b/winsup/w32api/include/secext.h
index 1d5ee58cf..1919f4fef 100644
--- a/winsup/w32api/include/secext.h
+++ b/winsup/w32api/include/secext.h
@@ -19,6 +19,25 @@ typedef enum
NameServicePrincipal = 10,
NameDnsDomain = 12
} EXTENDED_NAME_FORMAT, *PEXTENDED_NAME_FORMAT;
+
+BOOLEAN WINAPI GetComputerObjectNameA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
+BOOLEAN WINAPI GetComputerObjectNameW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
+BOOLEAN WINAPI GetUserNameExA(EXTENDED_NAME_FORMAT,LPSTR,PULONG);
+BOOLEAN WINAPI GetUserNameExW(EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
+BOOLEAN WINAPI TranslateNameA(LPCSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPSTR,PULONG);
+BOOLEAN WINAPI TranslateNameW(LPCWSTR,EXTENDED_NAME_FORMAT,EXTENDED_NAME_FORMAT,LPWSTR,PULONG);
+
+#ifdef UNICODE
+#define GetComputerObjectName GetComputerObjectNameW
+#define GetUserNameEx GetUserNameExW
+#define TranslateName TranslateNameW
+#else
+#define GetComputerObjectName GetComputerObjectNameA
+#define GetUserNameEx GetUserNameExA
+#define TranslateName TranslateNameA
+#endif
+
+
#endif /* ! RC_INVOKED */
#endif /* _WIN32_WINNT >= 0x0500 */
#endif /* ! _SECEXT_H */
diff --git a/winsup/w32api/lib/secur32.def b/winsup/w32api/lib/secur32.def
index bd130a1e1..2628f05cf 100644
--- a/winsup/w32api/lib/secur32.def
+++ b/winsup/w32api/lib/secur32.def
@@ -1,8 +1,11 @@
LIBRARY SECUR32.dll
EXPORTS
+AcceptSecurityContext@36
AcquireCredentialsHandleA@36
AcquireCredentialsHandleW@36
-AcceptSecurityContext@36
+ApplyControlTokenA@8
+ApplyControlTokenW@8
+CompleteAuthToken@8
DecryptMessage@16
DeleteSecurityContext@4
EncryptMessage@16
@@ -10,6 +13,11 @@ EnumerateSecurityPackagesA@8
EnumerateSecurityPackagesW@8
FreeContextBuffer@4
FreeCredentialsHandle@4
+GetComputerObjectNameA@12
+GetComputerObjectNameW@12
+GetUserNameExA@12
+GetUserNameExW@12
+ImpersonateSecurityContext@4
InitializeSecurityContextA@48
InitializeSecurityContextW@48
LsaCallAuthenticationPackage@28
@@ -18,16 +26,14 @@ LsaFreeReturnBuffer@4
LsaLogonUser@56
LsaLookupAuthenticationPackage@12
LsaRegisterLogonProcess@12
+MakeSignature@16
QueryContextAttributesA@12
QueryContextAttributesW@12
QueryCredentialsAttributesA@12
QueryCredentialsAttributesW@12
-CompleteAuthToken@8
-ApplyControlTokenA@8
-ApplyControlTokenW@8
-ImpersonateSecurityContext@4
-RevertSecurityContext@4
-MakeSignature@16
-VerifySignature@16
QuerySecurityPackageInfoA@8
QuerySecurityPackageInfoW@8
+RevertSecurityContext@4
+TranslateNameA@20
+TranslateNameW@20
+VerifySignature@16
diff --git a/winsup/w32api/lib/test.c b/winsup/w32api/lib/test.c
index be796840d..de9a842b2 100644
--- a/winsup/w32api/lib/test.c
+++ b/winsup/w32api/lib/test.c
@@ -67,6 +67,7 @@
#include <setupapi.h>
#include <aclapi.h>
#include <security.h>
+#include <secext.h>
#include <schnlsp.h>
#include <shlwapi.h>