X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_prov.c;h=ba7120b094a2328304d7fd6aa39e280c69337318;hb=dd645e71d12ec790dc6c2e1c44163e2683ae4c6a;hp=fe65c4d14a686e99e89620ebbd7944793475be69;hpb=265d89dcbce7fce4fa2b560b70597132fd8eb3b2;p=openssl-gost%2Fengine.git diff --git a/gost_prov.c b/gost_prov.c index fe65c4d..ba7120b 100644 --- a/gost_prov.c +++ b/gost_prov.c @@ -86,6 +86,12 @@ static const OSSL_ALGORITHM *gost_operation(void *vprovctx, int operation_id, const int *no_cache) { + switch (operation_id) { + case OSSL_OP_CIPHER: + return GOST_prov_ciphers; + case OSSL_OP_DIGEST: + return GOST_prov_digests; + } return NULL; } @@ -105,6 +111,8 @@ static const OSSL_ITEM *gost_get_reason_strings(void *provctx) /* The function that tears down this provider */ static void gost_teardown(void *vprovctx) { + GOST_prov_deinit_ciphers(); + GOST_prov_deinit_digests(); provider_ctx_free(vprovctx); }