OpenSSl 3 statically linking a provider

Kory Hamzeh kory at
Wed Sep 15 04:46:53 UTC 2021

I have written a custom provider which I need to include (link) with my Application at link time rather than load it at run-time. The init function is defined like this:

OSSL_provider_init_fn sck_provider_init;

int sck_provider_init(const OSSL_CORE_HANDLE *handle,
		       const OSSL_DISPATCH *in,
		       const OSSL_DISPATCH **out,
		       void **provctx)

But I cannot figure out how to initialize/load it in my app. The man page for provider(7) states that it is possible to do this, but does not explain how. Is that documented somewhere?


More information about the openssl-users mailing list