summaryrefslogtreecommitdiffstats
path: root/sesman/verify_user_kerberos.c
diff options
context:
space:
mode:
authorPavel Roskin <plroskin@gmail.com>2016-11-06 20:01:49 -0800
committerPavel Roskin <plroskin@gmail.com>2016-11-15 22:38:56 -0800
commite9a0324cb3b5f10b94fdd9fdf260fadc075d7e82 (patch)
treefecff31c7a85037e1ad26bfc30adf6817a31a0dd /sesman/verify_user_kerberos.c
parente8185caf319db95554f7f3a239e962ca96e24fd4 (diff)
downloadxrdp-proprietary-e9a0324cb3b5f10b94fdd9fdf260fadc075d7e82.tar.gz
xrdp-proprietary-e9a0324cb3b5f10b94fdd9fdf260fadc075d7e82.zip
Fix compile warnings for non-default authentication methods
Include string.h for strcmp(). Don't define _XOPEN_SOURCE, it conflicts with libc headers and hides putpwent(). Make input strings constant. Fix functions to match their declarations.
Diffstat (limited to 'sesman/verify_user_kerberos.c')
-rw-r--r--sesman/verify_user_kerberos.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sesman/verify_user_kerberos.c b/sesman/verify_user_kerberos.c
index 0d35b115..62d020a5 100644
--- a/sesman/verify_user_kerberos.c
+++ b/sesman/verify_user_kerberos.c
@@ -67,8 +67,8 @@ struct k5_data
struct user_info
{
- char *name;
- char *pass;
+ const char *name;
+ const char *pass;
};
/******************************************************************************/
@@ -221,7 +221,7 @@ kinit_prompter(krb5_context ctx, void *data, const char *name,
static int
k5_kinit(struct k_opts *opts, struct k5_data *k5, struct user_info *u_info)
{
- char *doing;
+ const char *doing;
int notix = 1;
krb5_keytab keytab = 0;
krb5_creds my_creds;
@@ -425,7 +425,7 @@ auth_userpass(const char *user, const char *pass, int *errorcode)
/******************************************************************************/
/* returns error */
int DEFAULT_CC
-auth_start_session(void)
+auth_start_session(long in_val, int in_display)
{
return 0;
}
@@ -440,14 +440,14 @@ auth_stop_session(long in_val)
/******************************************************************************/
int DEFAULT_CC
-auth_end(void)
+auth_end(long in_val)
{
return 0;
}
/******************************************************************************/
int DEFAULT_CC
-auth_set_env(void)
+auth_set_env(long in_val)
{
return 0;
}