ProxyAuth
Linux PAM to authenticate device via Bluetooth device
Functions
pam_proxy.h File Reference
#include <errno.h>
#include <limits.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <time.h>
#include <unistd.h>
#include <bluetooth/bluetooth.h>
#include <bluetooth/hci.h>
#include <bluetooth/hci_lib.h>
#include <glib.h>
#include <gio/gio.h>
#include <security/pam_appl.h>
#include <security/pam_modules.h>
#include "pam_misc.h"
#include "pam_bt_misc.h"
#include "pam_bt_pair.h"
#include "pam_bt_trust.h"
#include "pam_post_auth.h"
Include dependency graph for pam_proxy.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

PAM_EXTERN int pam_sm_setcred (pam_handle_t *pamh, int flags, int argc, const char **argv)
 
PAM_EXTERN int pam_sm_acct_mgmt (pam_handle_t *pamh, int flags, int argc, const char **argv)
 
PAM_EXTERN int pam_sm_authenticate (pam_handle_t *pamh, int flags, int argc, const char **argv)
 

Function Documentation

◆ pam_sm_acct_mgmt()

PAM_EXTERN int pam_sm_acct_mgmt ( pam_handle_t *  pamh,
int  flags,
int  argc,
const char **  argv 
)

Not Used

Definition at line 7 of file pam_proxy.c.

◆ pam_sm_authenticate()

PAM_EXTERN int pam_sm_authenticate ( pam_handle_t *  pamh,
int  flags,
int  argc,
const char **  argv 
)

Handles User Authentication whether or not to approve the connected device as the hardware authenticator

Parameters
pamhthe PAM handle representing the current user authentication session
flags
argc
argv
Returns
PAM_SUCCESS iff the connected device is trusted

Definition at line 12 of file pam_proxy.c.

Here is the call graph for this function:

◆ pam_sm_setcred()

PAM_EXTERN int pam_sm_setcred ( pam_handle_t *  pamh,
int  flags,
int  argc,
const char **  argv 
)

Not Used

Definition at line 3 of file pam_proxy.c.