diff options
| author | srdusr <trevorgray@srdusr.com> | 2024-02-27 15:58:40 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2024-02-27 15:58:40 +0200 |
| commit | 2bad5d057a06dc52c726d4703b4a0342c014d390 (patch) | |
| tree | 3f4bd5ba9f100d71d297c0c7276f391d56d5b43b /main.h | |
| parent | dfd1d9fbdc74430e0b6ec709b4ad9c506b9fd010 (diff) | |
| download | cerberus-2bad5d057a06dc52c726d4703b4a0342c014d390.tar.gz cerberus-2bad5d057a06dc52c726d4703b4a0342c014d390.zip | |
Moved function declarations to main.h
Diffstat (limited to 'main.h')
| -rw-r--r-- | main.h | 32 |
1 files changed, 32 insertions, 0 deletions
@@ -0,0 +1,32 @@ +#ifndef MAIN_H +#define MAIN_H + +#include <dirent.h> +#include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <sys/stat.h> +#include <time.h> +#include <unistd.h> + +#define MAX_PASSWORD_LENGTH 128 +#define MAX_WEBSITE_LENGTH 128 +#define MAX_USERNAME_LENGTH 128 +#define MAX_PASSWORDS 100 + +struct Password { + char website[MAX_WEBSITE_LENGTH]; + char username[MAX_USERNAME_LENGTH]; + char password[MAX_PASSWORD_LENGTH]; +}; + +extern struct Password passwords[MAX_PASSWORDS]; +extern int numPasswords; + +void generate_password(char *password, int length); +void save_password(struct Password *password, const char *dir); +void load_passwords(const char *dir); +void copy_to_clipboard(char *text); + +#endif /* MAIN_H */ |
