From d26f046fc9149693a6ebc28301ccc3581c0f144e Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Mon, 9 Jan 2023 01:22:54 +0100 Subject: Initial commit --- auth.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 auth.h (limited to 'auth.h') diff --git a/auth.h b/auth.h new file mode 100644 index 0000000..a4145aa --- /dev/null +++ b/auth.h @@ -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 */ -- cgit v1.2.3