]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - providers/common/provider_util.c
Add AES_CBC_HMAC_SHA ciphers to providers.
[thirdparty/openssl.git] / providers / common / provider_util.c
index ef4396f432719923f1e5fe5935c682dc17154d2e..504463df19bcf2d9763fb54dff22e4ee34e59cd5 100644 (file)
@@ -237,3 +237,17 @@ int ossl_prov_macctx_load_from_params(EVP_MAC_CTX **macctx,
     *macctx = NULL;
     return 0;
 }
+
+void ossl_prov_cache_exported_algorithms(const OSSL_ALGORITHM_CAPABLE *in,
+                                         OSSL_ALGORITHM *out)
+{
+    int i, j;
+
+    if (out[0].algorithm_names == NULL) {
+        for (i = j = 0; in[i].alg.algorithm_names != NULL; ++i) {
+            if (in[i].capable == NULL || in[i].capable())
+                out[j++] = in[i].alg;
+        }
+        out[j++] = in[i].alg;
+    }
+}