package pkcs11

  1. Overview
  2. Docs
type t = private
  1. | Auto
  2. | FFI

How the interaction is done with the DLL.

val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val ffi : t

Call directly each symbol using libffi.

val auto : t

Call C_GetFunctionList using libffi. For each symbol, try to access it through the returned function list. Otherwise, call the symbol directly.

OCaml

Innovation. Community. Security.