diff options
author | Philipp Gesang <phg@phi-gamma.net> | 2018-11-06 21:34:30 +0100 |
---|---|---|
committer | Philipp Gesang <phg@phi-gamma.net> | 2018-11-06 21:37:02 +0100 |
commit | ec08b71fb47b82402f0fbb8859a2445519f79615 (patch) | |
tree | e0c5cefc8f2f62feb345ea9330633f91676b9a6b /sid.mli | |
parent | dd55d557c61965d985e2f6f771bc7308e613aea8 (diff) | |
download | ocaml-sid-ec08b71fb47b82402f0fbb8859a2445519f79615.tar.gz |
sid: sid_test: validate identifier authority on create()
Reject ia’s greater than six bytes can encompass.
Diffstat (limited to 'sid.mli')
-rw-r--r-- | sid.mli | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,7 +6,8 @@ type sub_auths = Stdint.Uint32.t array val create : ?sa:Stdint.Uint32.t array -> Stdint.Uint64.t -> t option (** [create sas ia] constructs a SID with the identifier authority [ia] and, optionally, the subauthorities [sas]. The operation will return - [None] if [sa] contains more than fifteen subauthorities. *) + [None] if [sa] contains more than fifteen subauthorities, or if [ia] + exceeds 48 bits. *) val create_unsafe : Stdint.Uint32.t array -> Stdint.Uint64.t -> t (** [create_unsafe sas ia] constructs a SID with the identifier authority [ia] @@ -60,7 +61,7 @@ module PacketRep : to channel [oc] with endianness [endian]. *) end -(** Pre-defined SID constansts and constructors with fixed identifier +(** Pre-defined SID constants and constructors with fixed identifier authority (MS-DTYP 2.4.2.4). *) module WellKnown : sig |