Hi! I’d like to use cryptoki to test a PKCS11 module that is written in Rust. As far as I see, I currently have to compile the module to a binary and then load it with cryptoki::context::Pkcs11::new. Internally, this function constructs a cryptoki_sys::Pkcs11 instance from the loaded library and passes it to cryptoki::context::Pkcs11::_new. I think I should be able to construct the cryptoki_sys::Pkcs11 directly using function pointers to the Rust implementation, avoiding the additional compilation step. Would you accept a PR to make Pkcs11::_new part of the public API, maybe as Pkcs11::new_from_sys or Pkcs11::new_from_raw?
Hi! I’d like to use cryptoki to test a PKCS11 module that is written in Rust. As far as I see, I currently have to compile the module to a binary and then load it with
cryptoki::context::Pkcs11::new. Internally, this function constructs acryptoki_sys::Pkcs11instance from the loaded library and passes it tocryptoki::context::Pkcs11::_new. I think I should be able to construct thecryptoki_sys::Pkcs11directly using function pointers to the Rust implementation, avoiding the additional compilation step. Would you accept a PR to makePkcs11::_newpart of the public API, maybe asPkcs11::new_from_sysorPkcs11::new_from_raw?