mirror of
https://github.com/Yubico/yubico-pam.git
synced 2024-12-01 15:24:12 +01:00
fcde64a93e
Utility functions for what was done in drop_priv.c appeared in PAM 1.1.3. Use them when available.
17 lines
358 B
C
17 lines
358 B
C
#ifndef __PAM_YUBICO_DROP_PRIVS_H_INCLUDED__
|
|
#define __PAM_YUBICO_DROP_PRIVS_H_INCLUDED__
|
|
|
|
#include <pwd.h>
|
|
|
|
#ifdef HAVE_SECURITY_PAM_APPL_H
|
|
#include <security/pam_appl.h>
|
|
#endif
|
|
#ifdef HAVE_SECURITY_PAM_MODULES_H
|
|
#include <security/pam_modules.h>
|
|
#endif
|
|
|
|
int drop_privileges(struct passwd *, pam_handle_t *);
|
|
int restore_privileges(pam_handle_t *);
|
|
|
|
#endif
|