latchset / kryoptic

a pkcs#11 software token written in Rust
GNU General Public License v3.0
10 stars 4 forks source link

Support configuration through environment variable #35

Closed Jakuje closed 5 months ago

Jakuje commented 6 months ago

This is rough PoC of allowing the kryoptic to work without the pReserved pointer and without the init args altogether (as they are not mandatory). The code can probably be simplified, but this worked for me and allowed me to run the general pkcs11 applications against kryoptic without issues.

simo5 commented 6 months ago

Should we add a default place to look at when no env var is set ? (perhaps in a separate PR)

simo5 commented 5 months ago

Thanks!