summaryrefslogtreecommitdiff
path: root/src/sss_client/common.c
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-10-04 19:08:08 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-10-11 14:11:56 +0200
commitdba7903ba7fc04bc331004b0453938c116be3663 (patch)
tree598b19a0b64b38fe9866f43b702ea8f0f5ba5454 /src/sss_client/common.c
parent8ba8222afca3026fd67af08e224b1d9e848aceaa (diff)
downloadsssd-dba7903ba7fc04bc331004b0453938c116be3663.tar.gz
sssd-dba7903ba7fc04bc331004b0453938c116be3663.tar.bz2
sssd-dba7903ba7fc04bc331004b0453938c116be3663.zip
PAM: close socket fd with pam_set_data
https://fedorahosted.org/sssd/ticket/1569
Diffstat (limited to 'src/sss_client/common.c')
-rw-r--r--src/sss_client/common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sss_client/common.c b/src/sss_client/common.c
index 1ef3ba15..a4d523cd 100644
--- a/src/sss_client/common.c
+++ b/src/sss_client/common.c
@@ -794,6 +794,12 @@ errno_t check_server_cred(int sockfd)
#endif
return 0;
}
+
+int *sss_pam_get_socket(void)
+{
+ return &sss_cli_sd;
+}
+
int sss_pam_make_request(enum sss_cli_command cmd,
struct sss_cli_req_data *rd,
uint8_t **repbuf, size_t *replen,