cryptosense / pkcs11

OCaml bindings for the PKCS#11 cryptographic API
BSD 2-Clause "Simplified" License
22 stars 6 forks source link

Rename use_get_function_list to load_mode #93

Closed emillon closed 6 years ago

emillon commented 6 years ago

The use_get_function_list parameter (to load_driver) gets a name and a module. It describes how interaction with the DLL performs.

Most users can use the default value (auto) which just works. If more control is required, the following mapping is used:

former name new name
false ffi
true stubs
auto auto

The stubs mode is pretty complex, has global state (in pkcs11-module.c) and has the only advantage of being a fallback when libffi is not present (which is pretty much never the case), so it'll probably be removed at some point.