kasmvncpasswd: Add support for multiple users

This commit is contained in:
Lauri Kasanen
2020-10-09 15:36:03 +03:00
parent e7016550fc
commit 896950ea13
4 changed files with 217 additions and 39 deletions

View File

@@ -0,0 +1,27 @@
#ifndef KASMPASSWD_H
#define KASMPASSWD_H
#ifdef __cplusplus
extern "C" {
#endif
struct kasmpasswd_entry_t {
char user[32];
char password[128];
unsigned char write : 1;
unsigned char owner : 1;
};
struct kasmpasswd_t {
struct kasmpasswd_entry_t *entries;
unsigned num;
};
struct kasmpasswd_t *readkasmpasswd(const char path[]);
void writekasmpasswd(const char path[], const struct kasmpasswd_t *set);
#ifdef __cplusplus
} // extern C
#endif
#endif