package ocamldap

  1. Overview
  2. Docs
exception Decoding_error of string
exception Encoding_error of string
type readbyte_error =
  1. | End_of_stream
  2. | Transport_error
  3. | Peek_error
  4. | Request_too_large
  5. | Not_implemented
exception Readbyte_error of readbyte_error
type readbyte = ?peek:bool -> int -> string
type writebyte = char -> unit
type ber_class =
  1. | Universal
  2. | Application
  3. | Context_specific
  4. | Private
type ber_length =
  1. | Definite of int
  2. | Indefinite
type ber_val_header = {
  1. ber_class : ber_class;
  2. ber_primitive : bool;
  3. ber_tag : int;
  4. ber_length : ber_length;
}
val readbyte_of_string : string -> readbyte
val readbyte_of_ber_element : ber_length -> readbyte -> readbyte
val readbyte_of_fd : Unix.file_descr -> readbyte
val readbyte_of_ssl : Ssl.socket -> readbyte
val decode_ber_header : ?peek:bool -> readbyte -> ber_val_header
val encode_ber_header : ber_val_header -> string
val read_contents : ?peek:bool -> readbyte -> ber_length -> string
val decode_ber_bool : ?peek:bool -> ?cls:ber_class -> ?tag:int -> ?contents:string option -> readbyte -> bool
val encode_ber_bool : ?cls:ber_class -> ?tag:int -> bool -> string
val decode_ber_int32 : ?peek:bool -> ?cls:ber_class -> ?tag:int -> ?contents:string option -> readbyte -> int32
val encode_ber_int32 : ?cls:ber_class -> ?tag:int -> int32 -> string
val decode_ber_enum : ?peek:bool -> ?cls:ber_class -> ?tag:int -> ?contents:string option -> readbyte -> int32
val encode_ber_enum : ?cls:ber_class -> ?tag:int -> int32 -> string
val decode_ber_octetstring : ?peek:bool -> ?cls:ber_class -> ?tag:int -> ?contents:string option -> readbyte -> string
val encode_ber_octetstring : ?cls:ber_class -> ?tag:int -> string -> string
val decode_ber_null : ?peek:bool -> ?cls:ber_class -> ?tag:int -> ?contents:string option -> readbyte -> unit
val encode_ber_null : ?cls:ber_class -> ?tag:int -> unit -> string
val encode_berval_list : ?buf:Buffer.t -> ('a -> string) -> 'a list -> string
val decode_berval_list : ?lst:'a list -> (readbyte -> 'a) -> readbyte -> 'a list
OCaml

Innovation. Community. Security.