2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

new shadow password scheme. Always include shadow support if the

platform supports it and the user did not disable it via configure
This commit is contained in:
Todd C. Miller
1998-09-21 04:00:56 +00:00
parent 2de38e16c3
commit 1c66c857e4
8 changed files with 195 additions and 479 deletions

15
sudo.c
View File

@@ -83,14 +83,9 @@ static char rcsid[] = "$Id$";
#include <sys/param.h>
#include <netinet/in.h>
#include <netdb.h>
#if (SHADOW_TYPE == SPW_SECUREWARE)
# ifdef __hpux
# include <hpsecurity.h>
# else
# include <sys/security.h>
# endif /* __hpux */
# include <prot.h>
#endif /* SPW_SECUREWARE */
#ifdef HAVE_GETPRPWUID
#include <prot.h>
#endif /* HAVE_GETPRPWUID */
#ifdef HAVE_DCE
#include <pthread.h>
#endif /* HAVE_DCE */
@@ -193,9 +188,9 @@ int main(argc, argv)
int sudo_mode = MODE_RUN;
extern char ** environ;
#if (SHADOW_TYPE == SPW_SECUREWARE) && defined(HAVE_SET_AUTH_PARAMETERS)
#if defined(HAVE_GETPRPWUID) && defined(HAVE_SET_AUTH_PARAMETERS)
(void) set_auth_parameters(argc, argv);
#endif /* SPW_SECUREWARE */
#endif /* HAVE_GETPRPWUID && HAVE_SET_AUTH_PARAMETERS */
Argv = argv;
Argc = argc;