Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a static pkcs11 engine library #551

Open
maroueneboubakri opened this issue Oct 22, 2024 · 5 comments
Open

Build a static pkcs11 engine library #551

maroueneboubakri opened this issue Oct 22, 2024 · 5 comments

Comments

@maroueneboubakri
Copy link

maroueneboubakri commented Oct 22, 2024

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

@maroueneboubakri
Copy link
Author

@mtrojnar FYI

@maroueneboubakri
Copy link
Author

With --disable-shared --enable-static pkcs11 library is not generate for Linux host, while for MinGW it is generating a static pkcs11.a library.

@mtrojnar
Copy link
Member

How do you intend to use a static OpenSSL engine?

@maroueneboubakri
Copy link
Author

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

@mtrojnar
Copy link
Member

I admit I have zero experience with using static engines with OpenSSL. Feel free to submit a PR to add support for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants