|
taskrambler
0.1.8
Web server and task management solution.
|
#include <sys/types.h>#include "class.h"#include "session.h"#include "hash.h"#include "auth.h"#include "auth/credential.h"#include "storage/storage.h"#include "user.h"#include "uuid.h"
Include dependency graph for application.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | randval |
Functions | |
| CLASS (Application) | |
| int | applicationLogin (Application, Credential, Session) |
| void | applicationLogout (Application, Session) |
| Uuid | applicationCreateUser (Application, Credential, User) |
| Uuid | applicationUpdateUser (Application, User) |
| User | applicationGetUser (Application, Uuid) |
| int | applicationUpdatePassword (Application, Credential, User) |
| Session | applicationSessionStart (Application) |
| Session | applicationSessionGet (Application, const char *) |
| void | applicationSessionStop (Application, Session) |
| void | applicationSessionCleanup (Application, time_t) |
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file application.h.
| struct randval |
Definition at line 40 of file application.h.
Collaboration diagram for randval:| Data Fields | ||
|---|---|---|
| time_t | timestamp | |
| int | value | |
| Uuid applicationCreateUser | ( | Application | , |
| Credential | , | ||
| User | |||
| ) |
Definition at line 43 of file create_user.c.
References applicationUpdatePassword(), indexUuid(), MEM_FREE, serialize(), SPR_OK, storageDelete(), storagePut(), and uuidZero.
Referenced by controllerSignupCreate(), and controllerUserCreate().
Here is the call graph for this function:
Here is the caller graph for this function:| User applicationGetUser | ( | Application | , |
| Uuid | |||
| ) |
Definition at line 41 of file get_user.c.
References MEM_FREE, storageGet(), and unserialize().
Referenced by controllerUserRead().
Here is the call graph for this function:
Here is the caller graph for this function:| int applicationLogin | ( | Application | , |
| Credential | , | ||
| Session | |||
| ) |
this is a user authenticated via another method than the password database and has not yet logged in. NOTE: first we have to remove the search user and as username is initialized with something that we will free later here we must set it to NULL so that the delete will not free it.
Definition at line 42 of file login.c.
References authenticate(), CRED_PASSWORD, CRED_PWD, CSTRA, FALSE, indexUuid(), MEM_FREE, serialize(), storageGet(), storagePut(), TRUE, and unserialize().
Referenced by controllerAuthenticateCreate(), and controllerSignupCreate().
Here is the call graph for this function:
Here is the caller graph for this function:| void applicationLogout | ( | Application | , |
| Session | |||
| ) |
Definition at line 33 of file logout.c.
Referenced by controllerAuthenticateDelete().
Here is the caller graph for this function:| void applicationSessionCleanup | ( | Application | , |
| time_t | |||
| ) |
Definition at line 36 of file session_cleanup.c.
References hashCleanup(), MEM_FREE, memCalloc(), and SESSION_LIVETIME.
Referenced by applicationAdapterHttpUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| Session applicationSessionGet | ( | Application | , |
| const char * | |||
| ) |
now get the session if not expired
update livetime of session if found
Definition at line 36 of file session_get.c.
References hashAdd(), hashDelete(), and SESSION_LIVETIME.
Referenced by applicationAdapterHttpUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| Session applicationSessionStart | ( | Application | ) |
Definition at line 36 of file session_start.c.
References hashAdd().
Referenced by applicationAdapterHttpUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| void applicationSessionStop | ( | Application | , |
| Session | |||
| ) |
Definition at line 35 of file session_stop.c.
References hashDeleteByVal(), and SESSION_LIVETIME.
Here is the call graph for this function:| int applicationUpdatePassword | ( | Application | , |
| Credential | , | ||
| User | |||
| ) |
Definition at line 41 of file update_password.c.
References CRED_PWD, FALSE, hash_pw(), HASH_SIZE, indexUuid(), MEM_FREE, SALT_SIZE, storageUpdate(), and TRUE.
Referenced by applicationCreateUser().
Here is the call graph for this function:
Here is the caller graph for this function:| Uuid applicationUpdateUser | ( | Application | , |
| User | |||
| ) |
Definition at line 43 of file update_user.c.
References indexUuid(), MEM_FREE, serialize(), SPR_OK, storageUpdate(), and uuidZero.
Referenced by controllerUserUpdate().
Here is the call graph for this function:
Here is the caller graph for this function:| CLASS | ( | Application | ) |
Definition at line 45 of file application.h.