diff options
author | Pavel Březina <pbrezina@redhat.com> | 2012-01-12 09:41:52 +0100 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-01-17 11:38:15 -0500 |
commit | f643754db81eeade60485bbe3d80324d889cc4f3 (patch) | |
tree | 7810f368bf11fdc3ea98f9de642dd3ef0fca3271 /src/sss_client | |
parent | 2be3039b8fc8ec07a323d15060123366da786dc5 (diff) | |
download | sssd-f643754db81eeade60485bbe3d80324d889cc4f3.tar.gz sssd-f643754db81eeade60485bbe3d80324d889cc4f3.tar.xz sssd-f643754db81eeade60485bbe3d80324d889cc4f3.zip |
SUDO Integration review issues
Diffstat (limited to 'src/sss_client')
-rw-r--r-- | src/sss_client/sudo/sss_sudo.c | 6 | ||||
-rw-r--r-- | src/sss_client/sudo/sss_sudo.h | 6 | ||||
-rw-r--r-- | src/sss_client/sudo/sss_sudo_response.c | 1 | ||||
-rw-r--r-- | src/sss_client/sudo_testcli/sudo_testcli.c | 2 |
4 files changed, 8 insertions, 7 deletions
diff --git a/src/sss_client/sudo/sss_sudo.c b/src/sss_client/sudo/sss_sudo.c index 9a7494556..01fdee05c 100644 --- a/src/sss_client/sudo/sss_sudo.c +++ b/src/sss_client/sudo/sss_sudo.c @@ -36,9 +36,9 @@ static void sss_sudo_free_rules(unsigned int num_rules, static void sss_sudo_free_attrs(unsigned int num_attrs, struct sss_attr *attrs); -int sss_sudo_get_result(const char *username, - uint32_t *_error, - struct sss_result **_result) +int sss_sudo_send_recv(const char *username, + uint32_t *_error, + struct sss_result **_result) { struct sss_result *result = NULL; struct sss_cli_req_data request; diff --git a/src/sss_client/sudo/sss_sudo.h b/src/sss_client/sudo/sss_sudo.h index 04e19db24..1b5546786 100644 --- a/src/sss_client/sudo/sss_sudo.h +++ b/src/sss_client/sudo/sss_sudo.h @@ -45,9 +45,9 @@ struct sss_result { struct sss_rule *rules; }; -int sss_sudo_get_result(const char *username, - uint32_t *_error, - struct sss_result **_result); +int sss_sudo_send_recv(const char *username, + uint32_t *_error, + struct sss_result **_result); void sss_sudo_free_result(struct sss_result *result); diff --git a/src/sss_client/sudo/sss_sudo_response.c b/src/sss_client/sudo/sss_sudo_response.c index d33215a04..2b158b7de 100644 --- a/src/sss_client/sudo/sss_sudo_response.c +++ b/src/sss_client/sudo/sss_sudo_response.c @@ -188,6 +188,7 @@ int sss_sudo_parse_uint32(const char *message, return EINVAL; } + /* expanded SAFEALIGN_COPY_UINT32 macro from util.h */ memcpy(_number, message + start_pos, sizeof(uint32_t)); *_cursor = start_pos + sizeof(uint32_t); diff --git a/src/sss_client/sudo_testcli/sudo_testcli.c b/src/sss_client/sudo_testcli/sudo_testcli.c index e7da035e7..be31037ef 100644 --- a/src/sss_client/sudo_testcli/sudo_testcli.c +++ b/src/sss_client/sudo_testcli/sudo_testcli.c @@ -96,7 +96,7 @@ int main(int argc, char **argv) /* get sss_result - it will send new query to responder */ - ret = sss_sudo_get_result(username, &error, &result); + ret = sss_sudo_send_recv(username, &error, &result); if (ret != EOK) { fprintf(stderr, "Usss_sudo_get_result() failed: %s\n", strerror(ret)); goto fail; |