diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2006-11-23 16:44:55 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2006-11-23 16:44:55 +0000 |
commit | 124b187f16e39511d8829bb7eed44b2c76a4c59a (patch) | |
tree | c623751e934a6d65539f5ade2cfa9365467bd742 /winsup/cygwin/security.h | |
parent | 23f710014dabadd94cbaabe5fe0fe4d765c04d3d (diff) | |
download | cygnal-124b187f16e39511d8829bb7eed44b2c76a4c59a.tar.gz cygnal-124b187f16e39511d8829bb7eed44b2c76a4c59a.tar.bz2 cygnal-124b187f16e39511d8829bb7eed44b2c76a4c59a.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 10 |
1 files changed, 9 insertions, 1 deletions
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; \ |