package pkcs11

  1. Overview
  2. Docs
type t = private
  1. | Auto
  2. | Stubs
  3. | 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 show : t -> Ppx_deriving_runtime.string
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 stubs : t

Use C stubs to load the DLL using dlopen, and call each symbol through C_GetFunctionList.

  • deprecated
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.