]> www.wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_prov.c
Making a gost provider - Add the ciphers
[openssl-gost/engine.git] / gost_prov.c
index fe65c4d14a686e99e89620ebbd7944793475be69..04f4f3de4f59b9c1adf7be0bdd1d12aaff64b400 100644 (file)
@@ -86,6 +86,10 @@ 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;
+    }
     return NULL;
 }
 
@@ -105,6 +109,7 @@ 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();
     provider_ctx_free(vprovctx);
 }