diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-01-09 01:22:54 +0100 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-02-28 01:43:56 +0100 |
| commit | d26f046fc9149693a6ebc28301ccc3581c0f144e (patch) | |
| tree | 9da22edd4840304d6cd19a27efab58ce245985aa /auth.h | |
| download | slcl-d26f046fc9149693a6ebc28301ccc3581c0f144e.tar.gz | |
Initial commit
Diffstat (limited to 'auth.h')
| -rw-r--r-- | auth.h | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -0,0 +1,13 @@ +#ifndef AUTH_H +#define AUTH_H + +#include "http.h" + +struct auth *auth_alloc(const char *dir); +void auth_free(struct auth *a); +int auth_cookie(const struct auth *a, const struct http_cookie *c); +int auth_login(const struct auth *a, const char *user, const char *password, + char **cookie); +const char *auth_dir(const struct auth *a); + +#endif /* AUTH_H */ |
