/*
Authors:
Sumit Bose <sbose@redhat.com>
PAM client - create message blob
Copyright (C) 2015 Red Hat
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/>.
*/
#include <stdlib.h>
#include <security/pam_modules.h>
#include "sss_pam_compat.h"
#include "sss_pam_macros.h"
#include "pam_message.h"
#include "sss_cli.h"
enum sss_authtok_type authtok_type,
{
uint32_t c;
c = type;
c = authtok_type;
return rp;
}
{
uint32_t c;
c = type;
c = sizeof(uint32_t);
c = val;
return rp;
}
{
uint32_t c;
c = type;
c = size;
return rp;
}
{
int len;
D(("malloc failed."));
return PAM_BUF_ERR;
}
rp = 0;
rp += add_string_item(SSS_PAM_ITEM_REQUESTED_DOMAINS, pi->requested_domains, pi->requested_domains_size,
D(("error during packet creation."));
return PAM_BUF_ERR;
}
return 0;
}