diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-01 19:20:12 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2020-05-03 12:21:11 +0000 |
commit | 37b5259298be9137f5b40eef16027152ddb803ff (patch) | |
tree | 009945b3b4e87f180d58bfe99d21a1b9e27f7c13 /modules/pam_debug/pam_debug.c | |
parent | 1de9239b810a8aeab50a12048ae4b2f1256b11ea (diff) | |
download | pam-37b5259298be9137f5b40eef16027152ddb803ff.tar.gz pam-37b5259298be9137f5b40eef16027152ddb803ff.tar.bz2 pam-37b5259298be9137f5b40eef16027152ddb803ff.zip |
modules: remove PAM_SM_* macros
Starting with commit a684595c0bbd88df71285f43fb27630e3829121e aka
Linux-PAM-1.3.0~14 (Remove "--enable-static-modules" option and support
from Linux-PAM), PAM_SM_* macros have no effect.
Diffstat (limited to 'modules/pam_debug/pam_debug.c')
-rw-r--r-- | modules/pam_debug/pam_debug.c | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/modules/pam_debug/pam_debug.c b/modules/pam_debug/pam_debug.c index 9b68d382..75d475f0 100644 --- a/modules/pam_debug/pam_debug.c +++ b/modules/pam_debug/pam_debug.c @@ -1,32 +1,14 @@ -/* pam_permit module */ - /* - * $Id$ + * pam_debug module * * Written by Andrew Morgan <morgan@kernel.org> 2001/02/04 * - */ - -#define DEFAULT_USER "nobody" - -#include "config.h" - -#include <stdio.h> - -/* * This module is intended as a debugging aide for determining how * the PAM stack is operating. - * - * here, we make definitions for the externally accessible functions - * in this file (these definitions are required for static modules - * but strongly encouraged generally) they are used to instruct the - * modules include file to define their prototypes. */ -#define PAM_SM_AUTH -#define PAM_SM_ACCOUNT -#define PAM_SM_SESSION -#define PAM_SM_PASSWORD +#include "config.h" +#include <stdio.h> #include <security/pam_modules.h> #include <security/_pam_macros.h> @@ -35,6 +17,8 @@ #define _PAM_ACTION_UNDEF (-10) #include "../../libpam/pam_tokens.h" +#define DEFAULT_USER "nobody" + /* --- authentication management functions --- */ static int state(pam_handle_t *pamh, const char *text) |