Add selection support to the provider keymgmt_dup function
[openssl.git] / crypto / ec / ecx_meth.c
index df4b620829976d73ecc4f08e9914540a9037d2ea..61f062a2f8c0d331deadf8ba84f56320e1b85aaa 100644 (file)
@@ -410,7 +410,7 @@ static int ecx_pkey_copy(EVP_PKEY *to, EVP_PKEY *from)
     int ret;
 
     if (ecx != NULL) {
-        dupkey = ossl_ecx_key_dup(ecx);
+        dupkey = ossl_ecx_key_dup(ecx, OSSL_KEYMGMT_SELECT_ALL);
         if (dupkey == NULL)
             return 0;
     }