Some fixes to compile properly since this version has change a lot from 0.6.1

This commit is contained in:
Renaud Allard 2014-11-21 15:00:01 +01:00
parent 618ca587a5
commit 803af49a04
2 changed files with 9 additions and 3 deletions

View File

@ -95,7 +95,7 @@ AC_CHECK_MEMBER([struct in6_addr.s6_addr],
[AC_DEFINE(NO_ARPA_INET_H_IP6, 1, [for IPv6])],
[#include <arpa/inet.h>])
if test "x$enable_pam" != "xyes"
if test "x$enable_pam" != "xyes" || test "x$bsd" = "xtrue"
then
AC_DEFINE([USE_NOPAM],1,[Disable PAM])
fi

View File

@ -19,7 +19,7 @@
/**
*
* @file verify_user_user.c
* @file verify_user_bsd.c
* @brief Authenticate user using BSD password system
* @author Renaud Allard
*
@ -45,7 +45,7 @@ extern struct config_sesman* g_cfg; /* in sesman.c */
/******************************************************************************/
/* returns boolean */
long DEFAULT_CC
auth_userpass(char* user, char* pass)
auth_userpass(char *user, char *pass, int *errorcode)
{
int ret = auth_userokay(user, NULL, "auth-xrdp", pass);
return ret;
@ -86,6 +86,12 @@ auth_change_pwd(char* user, char* newpwd)
return 0;
}
int DEFAULT_CC
auth_stop_session(long in_val)
{
return 0;
}
/**
*
* @brief Password encryption