#define MAX_ALG_FILTERS 5
struct filter_prov_globals_st {
- OPENSSL_CTX *libctx;
+ OSSL_LIB_CTX *libctx;
OSSL_PROVIDER *deflt;
struct {
int operation;
static struct filter_prov_globals_st *get_globals(void)
{
/*
- * Ideally we'd like to store this in the OPENSSL_CTX so that we can have
+ * Ideally we'd like to store this in the OSSL_LIB_CTX so that we can have
* more than one instance of the filter provider at a time. But for now we
* just make it simple.
*/
struct filter_prov_globals_st *globs = get_globals();
OSSL_PROVIDER_unload(globs->deflt);
- OPENSSL_CTX_free(globs->libctx);
+ OSSL_LIB_CTX_free(globs->libctx);
}
/* Functions we provide to the core */
void **provctx)
{
memset(&ourglobals, 0, sizeof(ourglobals));
- ourglobals.libctx = OPENSSL_CTX_new();
+ ourglobals.libctx = OSSL_LIB_CTX_new();
if (ourglobals.libctx == NULL)
goto err;
err:
OSSL_PROVIDER_unload(ourglobals.deflt);
- OPENSSL_CTX_free(ourglobals.libctx);
+ OSSL_LIB_CTX_free(ourglobals.libctx);
return 0;
}