EVP_PKEY_meth_set_copy
EVP_PKEY_meth_set_copy(meth, ossl_hmac_copy);
OSSL_DEPRECATEDIN_3_0 void EVP_PKEY_meth_set_copy(EVP_PKEY_METHOD *pmeth, int (*copy)(EVP_PKEY_CTX *dst, const EVP_PKEY_CTX *src));
EVP_PKEY_meth_set_copy(custom_pmeth, custom_pmeth_copy);