From 124b187f16e39511d8829bb7eed44b2c76a4c59a Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 23 Nov 2006 16:44:55 +0000 Subject: * security.h (DBGSID): Define for debugging purposes. (MKSID): Rename from SID so as to not hide SID definition from winnt.h. * sec_helper.cc: Change SID to MKSID throughout. --- winsup/cygwin/security.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/security.h') diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index fd52b93cc..0f0fdb049 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -23,8 +23,16 @@ details. */ #define ACL_DEFAULT_SIZE 3072 #define NO_SID ((PSID)NULL) +/* Added for debugging purposes. */ +typedef struct { + BYTE Revision; + BYTE SubAuthorityCount; + SID_IDENTIFIER_AUTHORITY IdentifierAuthority; + DWORD SubAuthority[8]; +} DBGSID, *PDBGSID; + /* Macro to define variable length SID structures */ -#define SID(name, comment, authority, count, rid...) \ +#define MKSID(name, comment, authority, count, rid...) \ static NO_COPY struct { \ BYTE Revision; \ BYTE SubAuthorityCount; \ -- cgit v1.2.3