evp_keymgmt_get_legacy_alg
int tmp_id = evp_keymgmt_get_legacy_alg(keymgmt);
int evp_keymgmt_get_legacy_alg(const EVP_KEYMGMT *keymgmt);