eurephiadb_session.h
1 /* eurephia_session.h -- Internal API to provide storing of variables connected to a session 2 * 3 * GPLv2 only - Copyright (C) 2008 - 2015 4 * David Sommerseth <dazo@eurephia.org> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * as published by the Free Software Foundation; version 2 9 * of the License. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19 * 20 */ 21 22 /** 23 * @file eurephiadb_session.h 24 * @author David Sommerseth <dazo@users.sourceforge.net> 25 * @date 2008-08-06 26 * 27 * @brief Handles creating user sessions, which is unique per openvpn connection. 28 * 29 */ 30 31 #ifndef EUREPHIADB_SESSION_H_ 32 # define EUREPHIADB_SESSION_H_ 33 34 #include <eurephiadb_session_struct.h> 35 36 eurephiaSESSION *eDBopen_session_seed(eurephiaCTX *ctx, const char *digest, 37 const char *cname, const char *username, 38 const char *vpnipaddr, 39 const char *remipaddr, const char *remport); 40 41 eurephiaSESSION *eDBsession_load(eurephiaCTX *ctx, const char *sesskey, sessionType sesstype); 42 eurephiaSESSION *eDBopen_session_macaddr(eurephiaCTX *ctx, const char *macaddr); 43 44 #endif /* !EUREPHIADB_SESSION_H_ */