OpenSSl 3 statically linking a provider

Tomas Mraz tomas at openssl.org
Wed Sep 15 06:53:40 UTC 2021


On Tue, 2021-09-14 at 21:46 -0700, Kory Hamzeh wrote:
> 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?
> 
> Thanks,
> Kory

Please see the manual page for the OSSL_PROVIDER_add_builtin function
and the test/provfetchtest.c source code.

-- 
Tomáš Mráz
No matter how far down the wrong road you've gone, turn back.
                                              Turkish proverb
[You'll know whether the road is wrong if you carefully listen to your
conscience.]




More information about the openssl-users mailing list