Greenbone Security Assistant
9.0.1
gsad_session.h
Go to the documentation of this file.
1
/* Copyright (C) 2018 Greenbone Networks GmbH
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later
4
*
5
* This program is free software; you can redistribute it and/or
6
* modify it under the terms of the GNU General Public License
7
* as published by the Free Software Foundation; either version 2
8
* of the License, or (at your option) any later version.
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*/
19
25
#ifndef _GSAD_SESSION_H
26
#define _GSAD_SESSION_H
27
28
#include "
gsad_user.h
"
29
30
#include <glib.h>
31
32
void
33
session_add_user
(
const
gchar *
id
,
user_t
*
user
);
34
35
void
36
session_remove_user
(
const
gchar *
id
);
37
38
user_t
*
39
session_get_user_by_id
(
const
gchar *
id
);
40
41
user_t
*
42
session_get_user_by_username
(
const
gchar *username);
43
44
void
45
session_remove_other_sessions
(
const
gchar *
id
,
user_t
*
user
);
46
47
void
48
session_init
();
49
50
#endif
session_init
void session_init()
Definition:
gsad_session.c:84
user
User information structure, for sessions.
Definition:
gsad_user.c:42
session_remove_other_sessions
void session_remove_other_sessions(const gchar *id, user_t *user)
Removes all session of the user, except the one with the passed id.
Definition:
gsad_session.c:181
gsad_user.h
GSAD user handling.
session_remove_user
void session_remove_user(const gchar *id)
Remove a user from the session "database".
Definition:
gsad_session.c:164
session_get_user_by_username
user_t * session_get_user_by_username(const gchar *username)
Definition:
gsad_session.c:116
session_get_user_by_id
user_t * session_get_user_by_id(const gchar *id)
Definition:
gsad_session.c:97
session_add_user
void session_add_user(const gchar *id, user_t *user)
Add user to the session "database".
Definition:
gsad_session.c:147
src
gsad_session.h
Generated on Sat May 23 2020 00:00:00 for Greenbone Security Assistant by
1.8.17