Remove support for a static PAM module, improving portability.

This commit is contained in:
Dag-Erling Smørgrav 2017-03-07 16:21:26 +01:00
parent e6f26116a2
commit 23c871052f

View file

@ -38,7 +38,7 @@
#include <cryb/otp.h> #include <cryb/otp.h>
PAM_EXTERN int int
pam_sm_authenticate(pam_handle_t *pamh, int flags, pam_sm_authenticate(pam_handle_t *pamh, int flags,
int argc, const char *argv[]) int argc, const char *argv[])
{ {
@ -51,7 +51,7 @@ pam_sm_authenticate(pam_handle_t *pamh, int flags,
return (PAM_AUTH_ERR); return (PAM_AUTH_ERR);
} }
PAM_EXTERN int int
pam_sm_setcred(pam_handle_t *pamh, int flags, pam_sm_setcred(pam_handle_t *pamh, int flags,
int argc, const char *argv[]) int argc, const char *argv[])
{ {
@ -63,5 +63,3 @@ pam_sm_setcred(pam_handle_t *pamh, int flags,
(void)argv; (void)argv;
return (PAM_SUCCESS); return (PAM_SUCCESS);
} }
PAM_MODULE_ENTRY("pam_otp");