#ifndef _RSK_BACKUPPCD_AUTH_H
#define _RSK_BACKUPPCD_AUTH_H 1

#include "compat.h"

/*
 * These define the different privilege levels for a connection to be assigned.
 */
typedef enum {
	BPC_PRIV_ERROR,
        BPC_PRIV_NONE,
        BPC_PRIV_READ,
        BPC_PRIV_WRITE,
        BPC_PRIV_RDWR
} backuppc_privs_t;


void bpcd_auth_init(void);
backuppc_privs_t bpcd_auth_verify(const char *username, const char *passhash, uint32_t address);

#endif
