summaryrefslogtreecommitdiffstats
path: root/database/eurephiadb.c
Commit message (Collapse)AuthorAgeFilesLines
* Only lookup function symbols for the administration API if the context is ↵David Sommerseth2012-09-131-11/+14
| | | | | | | | | correct This skips looking up all the eDBadmin*() functions if the context is unprivileged or the database interface is initialised by the OpenVPN plug-in Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Added a new database driver function: eDBregister_vpnclientaddr()David Sommerseth2012-09-131-3/+16
| | | | | | | | | | | | This function replaces eDBregister_vpnmacaddr(). This new function will in addition to the MAC address (if OpenVPN is running in TAP mode) also register the client's IPv4 VPN address. It's also prepared for logging the client's IPv6 VPN address. This function supports both TUN and TAP mode, while the old function only handled TAP mode. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated wrong log entriesDavid Sommerseth2010-08-291-8/+8
| | | | | | Removed old and obsolete expressions used to reference the eurephia database driver. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
* Updated Copyright dates to include 2010David Sommerseth2010-07-301-1/+1
|
* Reworked and unified admin authentication and registration functions to ↵David Sommerseth2009-09-281-6/+1
| | | | | | | | eDBadminAuthenticate() eDBadminAuth(), eDBadminValidateSession(), eDBadminRegisterLogin() and eDBadminLogout() are now unfied into one admin function, eDBadminAuthenticate(). This function receives all input as eurephia XML documents.
* Cosmetic cleanupDavid Sommerseth2009-09-271-8/+4
|
* Unified eDBadminUser*() functions into one eDBadminUserAccount() functionDavid Sommerseth2009-09-241-5/+1
| | | | | | Rewritten the database API and the SQLite3 database driver. This code has yet not been tested.
* Unified eDBadminGetCertificateInfo(), eDBadminAddCertificate() and ↵David Sommerseth2009-09-221-3/+1
| | | | | | eDBadminDeleteCertificate() into eDBadminCertificate() Updated eurephiadm utility to make use of this new unified API
* Unified eDBadminGetAdminAccess() and eDBadminEditAdminAccess() into ↵David Sommerseth2009-09-211-2/+1
| | | | eDBadminAccessLevel()
* Unified database driver functions eDBadminConfigSet() and ↵David Sommerseth2009-09-141-3/+1
| | | | eDBadminConfigDelete() into eDBadminConfiguration()
* Removed no longer needed driver function (eDBadminGetCertificateList())David Sommerseth2009-09-111-1/+0
|
* More commentsDavid Sommerseth2009-09-061-6/+31
|
* Unified eDBadminGetUserCertsList(...) and eDBadminUpdateUserCertLink(...) ↵David Sommerseth2009-09-011-2/+1
| | | | | | into one function Plus added better XML documentation for the new eDBadminUserCertsLink(...) function
* sqlite3 driver: Implemented eDBadminBlacklist(...) function for blacklist ↵David Sommerseth2009-05-091-0/+1
| | | | management
* sqlite3 driver: Implemented listing of openvpn_attempts tableDavid Sommerseth2009-04-091-1/+1
|
* Changed eDBadminGetFirewallProfiles(...) to eDBadminFirewallProfiles(...)David Sommerseth2009-03-291-1/+1
| | | | | Will try a new approach to use the same entry point for all actions connected to the firewall profiles configuration.
* Added eDBadminGetFirewallProfiles(...) function in DB driverDavid Sommerseth2009-03-281-0/+2
|
* Made the licence explicit GPLv2 onlyDavid Sommerseth2009-03-261-1/+1
|
* Cleaned up the code a little bitDavid Sommerseth2009-03-261-12/+2
| | | | | Made sure we only include needed include files and checked that the copyright headers are equal and correct
* Extended the database driver with eDBadminGetAdminAccess(...)David Sommerseth2009-03-241-0/+1
| | | | | | This function will return an XML document with data extracted from the eurephia_adminaccess table. Search criterias are defined by the search XML doc given as input.
* Added support for editing the eurephia_adminaccess tableDavid Sommerseth2009-03-221-0/+2
| | | | Implemented eDBadminEditAdminAccess(...) function in db driver
* Make it possible to compile plug-in again without eurephiadm enabledDavid Sommerseth2009-01-021-0/+2
|
* Added db driver function: eDBadminGetUserCertsList(...) - to get user ↵David Sommerseth2008-12-281-0/+2
| | | | account/certs links
* sqlite3 db driver: Added eDBadminUpdateUserCertLink(...) function to add and ↵David Sommerseth2008-12-251-0/+1
| | | | delete records in openvpn_usercerts
* eurephiadb init: Only setup the requiered function pointers in driverDavid Sommerseth2008-12-091-1/+1
| | | | | | | | | | | | | | | | This is ment as a security enhancement. Do not setup the function pointers to functions which is not needed for the requested minimum driver API version. Calling any of these functions which is not set up would then cause a SEGV. In real life, this means that the eurephia-auth.so which only needs API version 1 now will not setup any pointers to the API version 2, which the eurephiadm utility needs. In the future it should be a 4th argument to the eDBlink_init(...), defining features to enable when loading the drivers. This should be a bitwise mask. So that API version can change whenever the driver includes more functions. But for now, this change is enough.
* Changed admin functions to be prefixed with eDBadmin*, to unify the function ↵David Sommerseth2008-12-051-13/+13
| | | | name schema
* Added database functions for editing the openvpn_config tableDavid Sommerseth2008-12-021-0/+3
|
* Added eDBadminLogout(...) function in database driverDavid Sommerseth2008-11-301-0/+1
| | | | | Added one more status code, for active sessions. Auto-logout will now also delete session variables
* Improved admin authentication modelDavid Sommerseth2008-11-301-0/+2
| | | | | | Remove the session creation logic from the database layer, as that should be located in the application instead. Database layer should do as strictly as possible database things.
* Added some needed admin functionsDavid Sommerseth2008-11-281-1/+17
|
* Added minimum API version check when loading database driver.David Sommerseth2008-11-281-1/+10
|
* Cleaned up eurephiadb_session dependenciesDavid Sommerseth2008-11-281-1/+0
| | | | | Moved eurephiadb_session_struct.h to the common directory and made sure that eurephiadb_session.h is only included where needed
* Code cleanup in eurephiadb.cDavid Sommerseth2008-11-011-18/+18
|
* Updated eurephiadb driver to implement eDBget_blacklisted_ip() functionDavid Sommerseth2008-11-011-0/+1
|
* Reorganised the source codeDavid Sommerseth2008-10-151-0/+125
Moved all OpenVPN plug-in related things into ./plugins, including firewall Moved all shared code into ./common and moved the generic part of the database files into ./database Updated all CMakeLists.txt files and created a new one for the root directory