/*
Authors:
Pavel Březina <pbrezina@redhat.com>
Copyright (C) 2011 Red Hat
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "config.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include "sss_client/sss_cli.h"
#include "sss_client/sudo/sss_sudo.h"
#include "sss_client/sudo/sss_sudo_private.h"
const char *username,
size_t *_query_len);
static void sss_sudo_free_rules(unsigned int num_rules,
struct sss_sudo_rule *rules);
static void sss_sudo_free_attrs(unsigned int num_attrs,
struct sss_sudo_attr *attrs);
const char *username,
char **_domainname,
struct sss_sudo_result **_result)
{
int errnop = 0;
int ret = 0;
/* create query */
goto done;
}
/* send query and receive response */
errnop = 0;
if (ret != SSS_STATUS_SUCCESS) {
goto done;
}
/* parse structure */
done:
return ret;
}
const char *username,
const char *domainname,
struct sss_sudo_result **_result)
{
int ret;
return EINVAL;
}
/* send query and receive response */
return ret;
}
const char *username,
char **_domainname,
struct sss_sudo_result **_result)
{
return EINVAL;
}
}
{
return ENOMEM;
}
*_query_len = data_len;
return EOK;
}
{
int i, j;
for (i = 0; i < e->num_attrs; i++) {
return ENOMEM;
}
for (j = 0; j < attr->num_values; j++) {
return ENOMEM;
}
}
break;
}
}
return ENOENT;
}
return EOK;
}
{
return;
}
}
}
{
return;
}
}
{
int i;
return;
}
for (i = 0; i < num_rules; i++) {
}
}
{
int i, j;
return;
}
for (i = 0; i < num_attrs; i++) {
for (j = 0; j < attr->num_values; j++) {
}
}
}