package pkcs11-driver

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Pkcs11_mechanism_listSource

An element of type t is a structure made of a pointer to a C array, and its length.

The reason we use this type is that some PKCS#11 functions require a two step interraction, in which one first gives a null pointer (with length 0) to a function, which modifies the length of the list. Then, the user allocates memory for this list, and performs a second call to the function.

Sourcetype t
Sourceval create : unit -> t

create () allocates a new t with length 0, and content the null pointer.

Sourceval allocate : t -> unit

allocate t updates the content of the t structure to point to freshly allocated memory.

Sourceval make : u -> t
Sourceval view : t -> u
Sourceval get_length_addr : t -> P11_ulong.t Ctypes.ptr
OCaml

Innovation. Community. Security.