mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
pam: Tidy header includes
Remove headers which are provided by libroken, and reorder header includes so that they're a bit a more legible. Change-Id: I9a8c2d588eb00d1315c660faa485037cef2f8e6d Reviewed-on: http://gerrit.openafs.org/4401 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
parent
cb87e0834c
commit
b3f8fd344c
@ -10,7 +10,6 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
||||
|
@ -10,17 +10,13 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include <syslog.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/param.h>
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <afs/kautils.h>
|
||||
#include <signal.h>
|
||||
#include <errno.h>
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
@ -7,22 +7,16 @@
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#include <syslog.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <afs/kautils.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
#include "afs_message.h"
|
||||
#include "afs_util.h"
|
||||
|
||||
|
@ -10,14 +10,12 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <security/pam_appl.h>
|
||||
|
||||
#include "afs_pam_msg.h"
|
||||
#include "afs_message.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
|
||||
int
|
||||
|
@ -7,26 +7,22 @@
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#include <syslog.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <afs/kautils.h>
|
||||
#include "afs_message.h"
|
||||
#include "afs_util.h"
|
||||
#include "afs_pam_msg.h"
|
||||
#include <signal.h>
|
||||
#include <sys/wait.h>
|
||||
#include <errno.h>
|
||||
|
||||
#define RET(x) { retcode = (x); goto out; }
|
||||
|
||||
|
@ -10,12 +10,7 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
|
||||
#include <syslog.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <roken.h>
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
@ -7,21 +7,16 @@
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#include <syslog.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <pwd.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
#include <security/pam_modules.h>
|
||||
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <afs/kautils.h>
|
||||
|
||||
#include "afs_message.h"
|
||||
#include "afs_util.h"
|
||||
|
||||
|
@ -7,18 +7,18 @@
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <assert.h>
|
||||
#include <unistd.h>
|
||||
#include <errno.h>
|
||||
#include <syslog.h>
|
||||
#include <security/pam_appl.h>
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#ifdef HAVE_SYS_WAIT_H
|
||||
#include <sys/wait.h>
|
||||
#endif
|
||||
|
||||
#include <assert.h>
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#ifdef AFS_AIX51_ENV
|
||||
#include <sys/cred.h>
|
||||
#ifdef HAVE_SYS_PAG_H
|
||||
@ -26,6 +26,7 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <security/pam_appl.h>
|
||||
|
||||
#include "afs_util.h"
|
||||
|
||||
@ -50,29 +51,6 @@ nil_cleanup(pam_handle_t * pamh, void *data, int pam_end_status)
|
||||
return;
|
||||
}
|
||||
|
||||
/* The PAM module needs to be free from libucb dependency. Otherwise,
|
||||
dynamic linking is a problem, the AFS PAM library refuses to coexist
|
||||
with the DCE library. The sigvec() and sigsetmask() are the only two
|
||||
calls that neccesiate the inclusion of libucb.a. There are used by
|
||||
the lwp library to support premeptive threads and signalling between
|
||||
threads. Since the lwp support used by the PAM module uses none of
|
||||
these facilities, we can safely define these to be null functions */
|
||||
|
||||
#if !defined(AFS_HPUX110_ENV)
|
||||
/* For HP 11.0, this function is in util/hputil.c */
|
||||
int
|
||||
sigvec(int sig, const struct sigvec *vec, struct sigvec *ovec)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
|
||||
int
|
||||
sigsetmask(int mask)
|
||||
{
|
||||
assert(0);
|
||||
}
|
||||
#endif /* AFS_HPUX110_ENV */
|
||||
|
||||
/* converts string to integer */
|
||||
|
||||
char *
|
||||
|
@ -10,13 +10,9 @@
|
||||
#include <afsconfig.h>
|
||||
#include <afs/param.h>
|
||||
|
||||
#include <roken.h>
|
||||
|
||||
#include <stdio.h>
|
||||
#include <security/pam_appl.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
static int my_conv(int num_msg, PAM_CONST struct pam_message **msg,
|
||||
struct pam_response **response, void *appdata_ptr);
|
||||
|
Loading…
Reference in New Issue
Block a user