Changeset a6005da for auth.c


Ignore:
Timestamp:
2016-03-25T18:07:53Z (8 years ago)
Author:
Dennis Kaarsemaker <dennis@…>
Branches:
master
Children:
50bb490
Parents:
8e6ecfe
git-author:
Dennis Kaarsemaker <dennis@…> (23-02-16 18:52:32)
git-committer:
Dennis Kaarsemaker <dennis@…> (25-03-16 18:07:53)
Message:

Linux pam authentication backend

This backend authenticates users against pam.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • auth.c

    r8e6ecfe ra6005da  
    11#define BITLBEE_CORE
    22#include "bitlbee.h"
     3
     4#ifdef WITH_PAM
     5extern auth_backend_t auth_pam;
     6#endif
    37
    48GList *auth_init(const char *backend)
     
    610        GList *gl = NULL;
    711        int ok = backend ? 0 : 1;
     12#ifdef WITH_PAM
     13        gl = g_list_append(gl, &auth_pam);
     14        if (backend && !strcmp(backend, "pam")) {
     15                ok = 1;
     16        }
     17#endif
    818
    919        return ok ? gl : NULL;
Note: See TracChangeset for help on using the changeset viewer.