summaryrefslogtreecommitdiffstats
path: root/src/login/pam_systemd_loadkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/pam_systemd_loadkey.c')
-rw-r--r--src/login/pam_systemd_loadkey.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/login/pam_systemd_loadkey.c b/src/login/pam_systemd_loadkey.c
index 3b4e911..3b11d76 100644
--- a/src/login/pam_systemd_loadkey.c
+++ b/src/login/pam_systemd_loadkey.c
@@ -18,13 +18,15 @@
* This can be overridden by the keyname= parameter. */
static const char DEFAULT_KEYNAME[] = "cryptsetup";
-_public_ int pam_sm_authenticate(
+_public_ PAM_EXTERN int pam_sm_authenticate(
pam_handle_t *handle,
int flags,
int argc, const char **argv) {
assert(handle);
+ pam_log_setup();
+
/* Parse argv. */
assert(argc >= 0);
@@ -89,7 +91,7 @@ _public_ int pam_sm_authenticate(
return PAM_SUCCESS;
}
-_public_ int pam_sm_setcred(
+_public_ PAM_EXTERN int pam_sm_setcred(
pam_handle_t *handle,
int flags,
int argc, const char **argv) {