summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-12-17opam: add remove directiveHEADmasterPhilipp Gesang
https://github.com/ocaml/opam-repository/pull/13118#pullrequestreview-183576751 Suggested-By: @mseri on Github
2018-12-11sid.ml: rectify string used to derive constantPhilipp Gesang
Ugh, experiments show that MS will parse arbitrarily short hex encoded IAs which in turn revealed miscalculation in our sloppy parsing mode.
2018-12-09bump versionv2.0Philipp Gesang
Increment major version due to API breakage.
2018-12-09sid.ml: give hex ia reader enough leeway for sloppy parsingPhilipp Gesang
In MS mode we need for much shorter strings to pass through to the hex parser.
2018-12-09doc: outline usagePhilipp Gesang
2018-12-09sidparse: flush linewise when run interactivelyPhilipp Gesang
Provide immediate feedback on stdout when running in an interactive terminal the assumption being we’re dealing with a human.
2018-11-29sid: sid_test: add conformance mode imitating MS APIPhilipp Gesang
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.
2018-11-08sid: functorize well-formedness checksPhilipp Gesang
Offload the test for member count and size constraints of sas and ia, respectively, into a separate validation module. This is a preparatory step toward adding less rigid parsing modes.
2018-11-07sid.mli: add short module blurbPhilipp Gesang
2018-11-07sid: sid_test: make subauthorities mandatoryPhilipp Gesang
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.
2018-11-07sid: sid_test: handle large ias correctlyPhilipp Gesang
In string format, the “identifier authority” is quirky: from 1 << 32 on the spec requires that exactly 12 hex digits be printed.
2018-11-06sid: add Sid.{of,to}_bytes aliasesPhilipp Gesang
Establish symmetry with of_string / to_string and the StringFmt module.
2018-11-06opam: raise minimum compiler version to 4.03Philipp Gesang
Apparently, the “result” type was not introduced until after the 4.02 series. Suggested-By: @kit-ty-kate on github
2018-11-06sid: sid_test: validate identifier authority on create()Philipp Gesang
Reject ia’s greater than six bytes can encompass.
2018-11-06sid.opam: add ocamlfind to opam depsPhilipp Gesang
This change reflects: https://github.com/ocaml/opam-repository/pull/12935/commits/5d761aa7bc982d40514787c8340b00374dbf1f0b Suggested-By: @kit-ty-kate on github
2018-11-06readme: add sections describing build and dev repoPhilipp Gesang
2018-11-06fix opam build, bump versionv1.1Philipp Gesang
- Add cmdliner to deps, - set {with-test} filter on unit tests, - version 1 → 1.1.
2018-11-05fix tests and bump versionv1Philipp Gesang
Also set minimum compiler version to 4.02 for package since that’s when the bytes type was introduced.
2018-11-03sid: add channel handlers for binary representationPhilipp Gesang
2018-11-03add linking exception to licensePhilipp Gesang
2018-11-03sid: predefine more well known constantsPhilipp Gesang
Add the constants from MS-DTYP 2.4.2.4 to Sid.WellKnown.
2018-11-03oasis: add documentation targetPhilipp Gesang
2018-11-03gitignore: mask more side-effectsPhilipp Gesang
2018-10-30sid_test: unit test string format version numbers some morePhilipp Gesang
2018-10-30sid_test: prefer Stdint module shorthandsPhilipp Gesang
2018-10-30sid: catch more boundary violationsPhilipp Gesang
2018-10-30sid: fix off by one parsing bugPhilipp Gesang
In the string representation, hyphen is always succeeded by a number so we need to terminate at input length minus one.
2018-10-30sid.mli: document modulePhilipp Gesang
2018-10-30sid: sid_test: move conversion functions to resultPhilipp Gesang
Get rid of all “StringFmt” APIs involving exceptions. There is now only the “decode” function which returns a result type.
2018-10-30sid_test: add unit tests for Sid.createPhilipp Gesang
2018-10-30add readme and license textPhilipp Gesang
2018-10-30sid: define more constant authorities from MS-DTYPPhilipp Gesang
2018-10-30sid: optionally handle big endian in packet format codecPhilipp Gesang
Oddly enough this only has an effect on the sub_auths since the 48 bits of “identifier authority” are always handled in big endian.
2018-10-28util: sidparse_test. add trivial test wrapperPhilipp Gesang
2018-10-28util/sidparse: add cli SID utilityPhilipp Gesang
2018-10-28sid: implement decoder for “packet representation”Philipp Gesang
2018-10-28sid_test: unit test packed representationPhilipp Gesang
2018-10-28xxd: add binary-text conversion helperPhilipp Gesang
2018-10-28sid: add interface definitionPhilipp Gesang
2018-10-28_oasis: opam: nix: add build and env setupPhilipp Gesang
2018-10-28sid: sid_test: add current state to repoPhilipp Gesang
2018-10-19initial: gitignorePhilipp Gesang