No need to have version macros for hooks, callbacks and the sudoers

group plugin.  We can just use the main sudo API macros.  The sudoers
group plugin macros are preserved for source compatibility but are
not documented.
This commit is contained in:
Todd C. Miller
2015-09-09 14:56:52 -06:00
parent c45559e6c8
commit edfeee6a7a
10 changed files with 115 additions and 166 deletions

View File

@@ -104,9 +104,9 @@ group_plugin_load(char *plugin_info)
goto done;
}
if (GROUP_API_VERSION_GET_MAJOR(group_plugin->version) != GROUP_API_VERSION_MAJOR) {
if (SUDO_API_VERSION_GET_MAJOR(group_plugin->version) != GROUP_API_VERSION_MAJOR) {
sudo_warnx(U_("%s: incompatible group plugin major version %d, expected %d"),
path, GROUP_API_VERSION_GET_MAJOR(group_plugin->version),
path, SUDO_API_VERSION_GET_MAJOR(group_plugin->version),
GROUP_API_VERSION_MAJOR);
goto done;
}