package sid

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
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.

val create_unsafe : Stdint.Uint32.t array -> Stdint.Uint64.t -> t

create_unsafe sas ia constructs a SID with the identifier authority ia and, optionally, the sub authorities sas without validating the inputs. Use with caution.

val equal : t -> t -> bool

equal sa sb tests whether sa and sb are identical.

val equal_sub_auths : Stdint.Uint32.t array -> Stdint.Uint32.t array -> bool

equal_sub_auths sa sb tests whether sa and sb have identical subauthorities.

val get_ident_auth : t -> Stdint.Uint64.t

get_ident_auth s get the identifier authority of SID s.

val get_sub_auths : t -> sub_auths

get_ident_auth s get the subauthorities array of SID s.

module StringFmt : sig ... end

Conversions to and from the string format syntax (MS-DTYP 2.4.2.1).

module PacketRep : sig ... end

Conversion to and from the packet representation (MS-DTYP 2.4.2.2).

module WellKnown : sig ... end

Pre-defined SID constansts and constructors with fixed identifier authority (MS-DTYP 2.4.2.4).

val of_string : string -> (t, string) Stdlib.result

of_string b is an alias for StringFmt.decode b.

val to_string : t -> string

to_string s is an alias for StringFmt.encode s.

OCaml

Innovation. Community. Security.