summaryrefslogtreecommitdiff
path: root/sid.mli
Commit message (Collapse)AuthorAgeFilesLines
* doc: outline usagePhilipp Gesang2018-12-091-1/+6
|
* sid: sid_test: add conformance mode imitating MS APIPhilipp Gesang2018-11-291-0/+11
| | | | | | | | | | | | Add a conformance handler “Con_MS” to achieve a behavior that mimicks that of MS’s implementation bug-for-bug. Aspects of reading and formatting governd by the conformance: - Validation of ident auths, - validation of subauths, - validation of leading zeros in decimal numbers, - zero-padding of hex numbers.
* sid.mli: add short module blurbPhilipp Gesang2018-11-071-0/+9
|
* sid: sid_test: make subauthorities mandatoryPhilipp Gesang2018-11-071-25/+31
| | | | | | | | | | | | | | | | | Both the constructor “Sid.create” and the string format parser must reject inputs lacking a subauthorities array of at least size one. Since the array is no longer optional, reorder the the constructor arguments to match the data representation. It is still possible to create SIDs without subauthorities via the “Sid.create_unsafe” constructor. Also, the packet representation will happily accept them because their definition (as well as that that of the identical RPC version) does not specify a minimum count. This is all rather ambiguous and exacerbated by the fact that [MS-DTYP] happily specifies an invalid SID “S-1-5” as the “NT_AUTHORITY”. However, both the grammar and the Win API “ConvertStringSidToSidA()” function reject SA-less inputs as invalid, so we should too.
* sid: add Sid.{of,to}_bytes aliasesPhilipp Gesang2018-11-061-0/+6
| | | | Establish symmetry with of_string / to_string and the StringFmt module.
* sid: sid_test: validate identifier authority on create()Philipp Gesang2018-11-061-2/+3
| | | | Reject ia’s greater than six bytes can encompass.
* sid: add channel handlers for binary representationPhilipp Gesang2018-11-031-0/+12
|
* add linking exception to licensePhilipp Gesang2018-11-031-1/+1
|
* sid: predefine more well known constantsPhilipp Gesang2018-11-031-8/+346
| | | | Add the constants from MS-DTYP 2.4.2.4 to Sid.WellKnown.
* sid.mli: document modulePhilipp Gesang2018-10-301-3/+34
|
* sid: sid_test: move conversion functions to resultPhilipp Gesang2018-10-301-2/+2
| | | | | | Get rid of all “StringFmt” APIs involving exceptions. There is now only the “decode” function which returns a result type.
* add readme and license textPhilipp Gesang2018-10-301-0/+2
|
* sid: define more constant authorities from MS-DTYPPhilipp Gesang2018-10-301-1/+7
|
* sid: optionally handle big endian in packet format codecPhilipp Gesang2018-10-301-5/+4
| | | | | Oddly enough this only has an effect on the sub_auths since the 48 bits of “identifier authority” are always handled in big endian.
* sid: implement decoder for “packet representation”Philipp Gesang2018-10-281-1/+1
|
* xxd: add binary-text conversion helperPhilipp Gesang2018-10-281-0/+2
|
* sid: add interface definitionPhilipp Gesang2018-10-281-0/+44