Commit Graph

154 Commits (0bb9797e2f827390cc803a6e59dbb78a7a8743c4)

Author SHA1 Message Date
dahall 25d13b5cbc Added SafePSID.Authority and SubAuthorities properties and mirrored extension methods for PSID. 2021-10-07 15:22:32 -06:00
dahall 2157b5feaf Reformatting 2021-10-07 15:19:18 -06:00
dahall cc495e80f5 Added IEquatable support to SID_IDENTIFIER_AUTHORITY and PSID_IDENTIFIER_AUTHORITY 2021-10-07 15:18:30 -06:00
dahall 1632570deb Updated SafePSID.FromToken to use generic GetInfo. 2021-10-07 10:33:44 -06:00
dahall dec201c90a Added extension methods HTOKEN.GetIntegrityLevel, PSECURITY_DESCRIPTOR.GetIntegrityLevel, PACE.GetAceType.
Made PACE.GetSide more robust.
2021-10-07 10:32:41 -06:00
dahall 126dffdfeb Added MANDATORY_LEVEL enum. 2021-10-07 10:29:48 -06:00
dahall 7c1740ddca Code cleanup of SecurityBaseApi.cs and addition of generic GetTokenInformation overload. 2021-10-07 10:29:13 -06:00
dahall 5dd166ae15 Extracted WinNTExtensions into its own file and added PACL.GetAce and PACL.EnumerateAces extension methods. 2021-10-06 17:36:40 -06:00
dahall d0cdc29543 Added SafePSECURITY_DESCRIPTOR.ToString(SECURITY_INFO) overload 2021-10-04 15:52:15 -06:00
dahall 96e3aef5fc Modified structure fields to make blittable 2021-05-08 17:34:15 -06:00
dahall a90a8d2687 Added non-opaque SID structure 2021-02-18 14:25:48 -07:00
dahall 9314a46714 Added LsaQueryCAPs overload taking a pointer for the first param 2020-12-18 17:47:54 -07:00
dahall 1b264636c7 Fixed bug in LookupAccountSid2 where assigned return values incorrectly. 2020-12-14 16:05:26 -07:00
dahall aa6085a4a6 Based on Windows error in LookupAccountSid, I've added LookupAccountSid2 based on LsaLookupSid2. 2020-12-08 10:34:12 -07:00
dahall 4a5b14ded3 Added `LookupAccountSidLocal` per #184 comment. Removed BestFitMapping from methods as it was used incorrectly. Added some parameter attributes. 2020-12-07 18:47:14 -07:00
dahall da963a8115 Fixed bug in marshaler for LSA_UNICODE_STRING under X64 that caused alignment error and failure on all calls. Thanks @ryannewington for identifying the problem and where to fix it (#169). 2020-09-14 17:17:20 -06:00
dahall 4f4b7e6670 Added Null fields to SafeHCRYPTHASH and SafeHCRYPTPROV 2020-09-09 17:42:33 -06:00
dahall e191ceabeb Added SafePSID.FromToken and PSID.GetDomainSid methods 2020-09-08 10:40:57 -06:00
dahall 2f50f9250f Added missing constants and macros related to SID size. 2020-09-08 10:40:19 -06:00
dahall 091352956e Fixed (#152) bug in base class SafeMemoryHandleExt that caused ToString(int...) to fail if memory size was not specifically set (like in parameter assignment). 2020-07-20 10:44:01 -06:00
dahall e073e09526 Fixed enumeration failures with EnumServiceStatus, EnumServiceStatusEx and EnumDependentServices (#145) 2020-07-13 08:39:38 -06:00
dahall a124fb4531 MAJOR BREAKING CHANGE: Changed underlying type of HRESULT and NTStatus to Int32 and Win32Error to UInt32 (reversed) due to a major miss on my part in reading the header files. Sorry everyone. 2020-04-27 21:25:47 -06:00
dahall 0c5dcbaef5 Fixed (#109) problem with SafePSECURITY_DESCRIPTOR not disposing using LocalFree by changing default constructor. 2020-03-27 17:11:18 -06:00
dahall a64e1c9cdd Fixed PROV_ENUMALGS and added CryptProviderName with known CSPs. 2020-03-15 19:10:57 -06:00
dahall 3e203d6b9b Added AdvApi32 methods from wincrypt.h 2020-03-13 15:45:15 -06:00
dahall 7ebcd7f00c Added and fixed XML documentation 2020-03-13 15:43:39 -06:00
dahall 82f474e741 Add and corrected XML documentation. 2020-03-01 18:59:39 -07:00
dahall 54ee24eb96 Fixed compiler warnings 2020-02-09 11:27:14 -07:00
dahall 34ee12d616 Updated PSID.ToString(string) docs 2020-01-05 20:50:42 -07:00
Jeffrey Jangli a3fb998699 Fixed memory leaks when using WindowsIdentity.GetCurrent() (#91) 2020-01-01 15:41:44 -07:00
David Hall ebc448c30a Changed default sizing to int.MaxValue to prevent overruns. 2019-11-27 14:46:08 -07:00
David Hall 142d0d6a41 Added missing value to SID_ENUM_TYPE (#74) 2019-11-27 07:58:18 -07:00
David Hall 6192335362 Added missing structures related to kerberos tickets 2019-11-26 21:32:18 -07:00
David Hall a7b722c8a3 Added SafeLsaMemoryHandleBase.Size as a helper for building structures with IVanaraMarshaler 2019-11-26 21:31:07 -07:00
David Hall 54ea0cf18c Fixed bug with POLICY_AUDIT_EVENTS_INFO when using 64-bit builds. 2019-11-26 07:14:10 -07:00
David Hall a94e60820b Reworked memory manipulation functions in InteropExtensions and IntPtrConverter to use new marshaling directives and to drive consistency of use across libs (i.e. call same method to do same work). 2019-11-19 12:52:44 -07:00
David Hall 9771eadebc Converted structures from using IVanaraMarshaler to using SafeAnysizeStructMarshaler attribute 2019-11-16 15:51:16 -07:00
David Hall f3716aefb7 Added generic helper functions for query and set. 2019-11-13 23:05:25 -05:00
David Hall e4959743fc Converted structures that supported IMarshalDirective to IVanaraMarshaler 2019-11-13 23:04:48 -05:00
David Hall bfd863bfe6 XML Comment corrections (bad params, bad refs, bad syntax). 2019-11-05 22:52:45 -07:00
David Hall 2723d06061 Added TokenMandatoryPolicy enum for use by TOKEN_MANDATORY_POLICY 2019-11-04 13:54:15 -07:00
David Hall f196cb9baf Improved object disposal in SafeHTOKEN.FromThread 2019-11-03 21:28:34 -07:00
David Hall 803b31f094 Added SID_AND_ATTRIBUTES.ToString 2019-11-03 21:27:51 -07:00
David Hall 6669249944 Added error handling to PSID.ToString("D") 2019-11-03 21:27:26 -07:00
David Hall 4beb2c77bc Fixed unterminated string bug in LSA_UNICODE_STRING.ToString and implicit operator. 2019-11-03 21:26:43 -07:00
David Hall 296a559eda Added SafeAnysizeStruct to help marshal stuctures with a 1-element field at the end that can be variable size. Adjusted all structs of this type to use this to marshal along with tests and supported classes.
BREAKING CHANGE: This forced the removal of PTOKEN_PRIVILEGES as that functionality is now in a shared marshaling class.
2019-11-03 16:02:54 -07:00
David Hall da3fad8c40 Moved URLZONE enum up to to Pinvoke/Shared assembly 2019-09-16 07:56:00 -06:00
David Hall 763407f6f7 Completed unit tests and changes for winsvc.h functions 2019-08-27 08:25:35 -06:00
David Hall fa274e0d61 Completed unit tests and updates for winsafer.h functions 2019-08-26 15:08:09 -06:00
David Hall 61637818d6 Finished unit testing and corrections for winreg.h functions 2019-08-26 13:08:42 -06:00