summaryrefslogtreecommitdiffstats
path: root/sss_client
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-09-14 09:55:33 +0200
committerSimo Sorce <ssorce@redhat.com>2009-09-14 12:08:57 -0400
commit4039db6e6b34330fec51bc765f40e85bf7b61141 (patch)
tree3902cd568b2c8785f8bb2594ba55c192d669ae9e /sss_client
parentbecd1fdabfe87781a7342c7d5a925fabcbcb9361 (diff)
downloadsssd-4039db6e6b34330fec51bc765f40e85bf7b61141.tar.gz
sssd-4039db6e6b34330fec51bc765f40e85bf7b61141.tar.xz
sssd-4039db6e6b34330fec51bc765f40e85bf7b61141.zip
make cli_pid mandatory and increase version number of pam protocol
Diffstat (limited to 'sss_client')
-rw-r--r--sss_client/pam_sss.c4
-rw-r--r--sss_client/sss_cli.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/sss_client/pam_sss.c b/sss_client/pam_sss.c
index be22fd353..9a1d44186 100644
--- a/sss_client/pam_sss.c
+++ b/sss_client/pam_sss.c
@@ -158,7 +158,7 @@ static size_t add_string_item(enum pam_item_type type, const char *str,
return rp;
}
-static int pack_message_v2(struct pam_items *pi, size_t *size,
+static int pack_message_v3(struct pam_items *pi, size_t *size,
uint8_t **buffer) {
int len;
uint8_t *buf;
@@ -526,7 +526,7 @@ static int send_and_receive(pam_handle_t *pamh, struct pam_items *pi,
print_pam_items(pi);
- ret = pack_message_v2(pi, &rd.len, &buf);
+ ret = pack_message_v3(pi, &rd.len, &buf);
if (ret != 0) {
D(("pack_message failed."));
pam_status = PAM_SYSTEM_ERR;
diff --git a/sss_client/sss_cli.h b/sss_client/sss_cli.h
index 2b4e5027e..b036aec31 100644
--- a/sss_client/sss_cli.h
+++ b/sss_client/sss_cli.h
@@ -21,7 +21,7 @@ typedef int errno_t;
#endif
#define SSS_NSS_PROTOCOL_VERSION 1
-#define SSS_PAM_PROTOCOL_VERSION 2
+#define SSS_PAM_PROTOCOL_VERSION 3
enum sss_cli_command {
/* null */