ProxyAuth
Linux PAM to authenticate device via Bluetooth device
pam_bt_misc.h
Go to the documentation of this file.
1 #ifndef PAM_BT_MISC_H
2 #define PAM_BT_MISC_H
3 
4 #include <ctype.h>
5 #include <stdio.h>
6 #include <stdlib.h>
7 #include <string.h>
8 
9 #define BT_MAC_LEN 17
10 #define BT_MAX_CONN 7 //Bluetooth Adapters can only connect up to 7 devices
11 #define LOG 1
12 
25 int verify_bt_addr(char *address, FILE *log_fp);
26 
35 int is_dev_trusted(FILE *log_fp, char *dev, char **trusted_devices, int num_of_devices);
36 
43 void free_device_list(char **device_list, int num_of_devices);
44 #endif
int verify_bt_addr(char *address, FILE *log_fp)
Definition: pam_bt_misc.c:5
void free_device_list(char **device_list, int num_of_devices)
Definition: pam_bt_misc.c:55
int is_dev_trusted(FILE *log_fp, char *dev, char **trusted_devices, int num_of_devices)
Definition: pam_bt_misc.c:46