Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 629 Bytes

readme.md

File metadata and controls

30 lines (22 loc) · 629 Bytes

zcryptoki

FOSS version of pkcs11 headers packaged for the zig build system.

Usage

  1. Fetch:
zig fetch --save git+https://github.com/say-fish/zcryptoki
  1. Add it to your build system:
const zcryptoki = b.dependency("zcryptoki", .{
    .target = target,
    .optimize = optimize,
    .version = .@"3.1", // pkcs11 version: optional, defaults to 3.1
    .deprecated = false,  // where to enable deprecated features, defaults to false
});
  1. Use it:
const cki = @import("zcryptoki");
cki.CK_OBJECT_HANDLE
...