ProxyAuth
Linux PAM to authenticate device via Bluetooth device
pam_bt_trust.h
Go to the documentation of this file.
1 #ifndef PAM_BT_TRUST
2 #define PAM_BT_TRUST
3 
4 #include <assert.h>
5 #include <stdio.h>
6 #include <string.h>
7 #include "pam_misc.h"
8 #include "pam_bt_misc.h"
9 #include "pam_bt_pair.h"
10 #include "pam_sec.h"
11 
12 extern const char *trusted_dir_path;
13 
24 int find_trusted_paired_device(FILE *log_fp, char **trusted_devices, int num_of_devices, char **paired_devices, int num_of_paired, char **detected_dev);
25 
34 FILE *get_trusted_dev_file(const char *trusted_dir_path, const char *username, FILE *log_fp);
35 
42 void set_trusted_devices(FILE *trusted_dev_fp, char **trusted_devices, int num_trusted_devices);
43 
54 char **find_trusted_devices(FILE *log_fp, const char *trusted_dir_path, const char *username, int *num_of_devices);
55 
66 int bluetooth_login(FILE *log_fp, const char *trusted_dir_path, const char *username, char **detected_dev);
67 
68 #endif
int bluetooth_login(FILE *log_fp, const char *trusted_dir_path, const char *username, char **detected_dev)
Definition: pam_bt_trust.c:148
char ** find_trusted_devices(FILE *log_fp, const char *trusted_dir_path, const char *username, int *num_of_devices)
Definition: pam_bt_trust.c:109
FILE * get_trusted_dev_file(const char *trusted_dir_path, const char *username, FILE *log_fp)
Definition: pam_bt_trust.c:26
int find_trusted_paired_device(FILE *log_fp, char **trusted_devices, int num_of_devices, char **paired_devices, int num_of_paired, char **detected_dev)
Definition: pam_bt_trust.c:3
void set_trusted_devices(FILE *trusted_dev_fp, char **trusted_devices, int num_trusted_devices)
Definition: pam_bt_trust.c:81
const char * trusted_dir_path
Definition: pam_bt_misc.c:3