1 #ifndef _RSK_BACKUPPCD_AUTH_H 2 #define _RSK_BACKUPPCD_AUTH_H 1 3 4 #include "compat.h" 5 6 /* 7 * These define the different privilege levels for a connection to be assigned. 8 */ 9 typedef enum { 10 BPC_PRIV_ERROR, 11 BPC_PRIV_NONE, 12 BPC_PRIV_READ, 13 BPC_PRIV_WRITE, 14 BPC_PRIV_RDWR 15 } backuppc_privs_t; 16 17 18 void bpcd_auth_init(void); 19 backuppc_privs_t bpcd_auth_verify(const char *username, const char *passhash, uint32_t address); 20 21 #endif |