summaryrefslogtreecommitdiffstats
path: root/src/sss_client
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-04-29 15:23:14 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-05-18 18:29:20 +0200
commit2ec676521edc2c6cd464b30e9b08d383ec23a9c4 (patch)
tree2b8245c9f0af9f5144ba1e6713233ffae12209a8 /src/sss_client
parent108a49f0e816d95cf75a1e964f63b397e53c8b56 (diff)
downloadsssd-2ec676521edc2c6cd464b30e9b08d383ec23a9c4.tar.gz
sssd-2ec676521edc2c6cd464b30e9b08d383ec23a9c4.tar.xz
sssd-2ec676521edc2c6cd464b30e9b08d383ec23a9c4.zip
sss_client: Fix mixed enums
Error: PW.MIXED_ENUM_TYPE: [#def4] sssd-1.12.90/src/sss_client/pam_message.c:159: mixed_enum_type: enumerated type mixed with another type # 157| &buf[rp]); # 158| # 159|-> rp += add_authtok_item(SSS_PAM_ITEM_AUTHTOK, pi->pam_authtok_type, # 160| pi->pam_authtok, pi->pam_authtok_size, &buf[rp]); # 161| Error: PW.MIXED_ENUM_TYPE: [#def5] sssd-1.12.90/src/sss_client/pam_message.c:162: mixed_enum_type: enumerated type mixed with another type # 160| pi->pam_authtok, pi->pam_authtok_size, &buf[rp]); # 161| # 162|-> rp += add_authtok_item(SSS_PAM_ITEM_NEWAUTHTOK, pi->pam_newauthtok_type, # 163| pi->pam_newauthtok, pi->pam_newauthtok_size, # 164| Reviewed-by: Pavel Reichl <preichl@redhat.com>
Diffstat (limited to 'src/sss_client')
-rw-r--r--src/sss_client/pam_message.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/sss_client/pam_message.h b/src/sss_client/pam_message.h
index 8ade6d871..1c8dd381a 100644
--- a/src/sss_client/pam_message.h
+++ b/src/sss_client/pam_message.h
@@ -26,6 +26,8 @@
#include <unistd.h>
#include <stdint.h>
+#include "util/authtok.h"
+
struct pam_items {
const char *pam_service;
const char *pam_user;
@@ -41,9 +43,9 @@ struct pam_items {
size_t pam_tty_size;
size_t pam_ruser_size;
size_t pam_rhost_size;
- int pam_authtok_type;
+ enum sss_authtok_type pam_authtok_type;
size_t pam_authtok_size;
- int pam_newauthtok_type;
+ enum sss_authtok_type pam_newauthtok_type;
size_t pam_newauthtok_size;
pid_t cli_pid;
const char *login_name;