Build a static pkcs11 engine library
Hello,
Has anyone succeeded to build a static pkcs11 library ? Despite that engine are designed to be dynamically loaded, but programmatically we still can set and register an engine in my application which would be statically linked against OpenSSL library and PKCS11 engine and would be great if the build system supports it, or maybe it is supported, but how to generate it.
Best Maro
@mtrojnar FYI
With --disable-shared --enable-static pkcs11 library is not generate for Linux host, while for MinGW it is generating a static pkcs11.a library.
How do you intend to use a static OpenSSL engine?
How do you intend to use a static OpenSSL engine?
Using ENGINE_add() to add a new engine to OpenSSL's internal list. The engine front has bind_helper() that can be exported an used to create the engine.
Best Maro
I admit I have zero experience with using static engines with OpenSSL. Feel free to submit a PR to add support for that.