aboutsummaryrefslogtreecommitdiffstats
path: root/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth.c')
-rw-r--r--auth.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/auth.c b/auth.c
index e83a683f..9717acc1 100644
--- a/auth.c
+++ b/auth.c
@@ -1,10 +1,20 @@
#define BITLBEE_CORE
#include "bitlbee.h"
+#ifdef WITH_PAM
+extern auth_backend_t auth_pam;
+#endif
+
GList *auth_init(const char *backend)
{
GList *gl = NULL;
int ok = backend ? 0 : 1;
+#ifdef WITH_PAM
+ gl = g_list_append(gl, &auth_pam);
+ if (backend && !strcmp(backend, "pam")) {
+ ok = 1;
+ }
+#endif
return ok ? gl : NULL;
}