diff options
author | Sumit Bose <sbose@redhat.com> | 2015-03-18 16:02:47 +0100 |
---|---|---|
committer | Sumit Bose <sbose@redhat.com> | 2015-05-08 09:14:31 +0200 |
commit | bf6c3f07d653d474da9e43b2b7cced57fc4ea069 (patch) | |
tree | c3a2a4f24e7e0fe6cea5e5579f3f298695211660 /src/sss_client/pam_message.h | |
parent | 219f5b698fa72c0d5a8da2b0dd99daec3f924c94 (diff) | |
download | sssd-bf6c3f07d653d474da9e43b2b7cced57fc4ea069.tar.gz sssd-bf6c3f07d653d474da9e43b2b7cced57fc4ea069.tar.xz sssd-bf6c3f07d653d474da9e43b2b7cced57fc4ea069.zip |
pam_sss: move message encoding into separate file
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/sss_client/pam_message.h')
-rw-r--r-- | src/sss_client/pam_message.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/sss_client/pam_message.h b/src/sss_client/pam_message.h new file mode 100644 index 000000000..8ade6d871 --- /dev/null +++ b/src/sss_client/pam_message.h @@ -0,0 +1,61 @@ +/* + Authors: + Sumit Bose <sbose@redhat.com> + + Copyright (C) 2015 Red Hat + + PAM client - create message blob + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU Lesser 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 Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef _PAM_MESSAGE_H_ +#define _PAM_MESSAGE_H_ + +#include <unistd.h> +#include <stdint.h> + +struct pam_items { + const char *pam_service; + const char *pam_user; + const char *pam_tty; + const char *pam_ruser; + const char *pam_rhost; + char *pam_authtok; + char *pam_newauthtok; + const char *pamstack_authtok; + const char *pamstack_oldauthtok; + size_t pam_service_size; + size_t pam_user_size; + size_t pam_tty_size; + size_t pam_ruser_size; + size_t pam_rhost_size; + int pam_authtok_type; + size_t pam_authtok_size; + int pam_newauthtok_type; + size_t pam_newauthtok_size; + pid_t cli_pid; + const char *login_name; + char *domain_name; + const char *requested_domains; + size_t requested_domains_size; + char *otp_vendor; + char *otp_token_id; + char *otp_challenge; + char *first_factor; +}; + +int pack_message_v3(struct pam_items *pi, size_t *size, uint8_t **buffer); + +#endif /* _PAM_MESSAGE_H_ */ |