diff options
Diffstat (limited to 'database/eurephiadb_driver.h')
-rw-r--r-- | database/eurephiadb_driver.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/database/eurephiadb_driver.h b/database/eurephiadb_driver.h index c02d167..abdcd77 100644 --- a/database/eurephiadb_driver.h +++ b/database/eurephiadb_driver.h @@ -1,6 +1,6 @@ /* eurephiadb_driver.h -- API provided by the database driver * - * GPLv2 only - Copyright (C) 2008 - 2010 + * GPLv2 only - Copyright (C) 2008 - 2012 * David Sommerseth <dazo@users.sourceforge.net> * * This program is free software; you can redistribute it and/or @@ -213,6 +213,25 @@ int EUREPHIA_DRIVERAPI_FUNC(eDBregister_vpnmacaddr)(eurephiaCTX *ctx, eurephiaSE /** + * Registers the VPN clients address. This function is called when + * OpenVPN does the OPENVPN_PLUGIN_LEARN_ADDRESS call to the eurephia-auth plug-in. + * In TAP mode the clients VPN MAC and IP address are stored, in TUN mode the VPN IP + * address is stored. + * + * @version API version level 3 + * @param ctx eurephiaCTX + * @param session eurephiaSESSION of the user + * @param macaddr String (char *) containing the MAC address of the clients interface. + * @param vpnip4addr String (char *) containing the IPv4 address of the clients interface. + * @param vpnip6addr String (char *) containing the IPv6 address of the clients interface. + * + * @return Returns 1 on success, otherwise 0. + */ +int EUREPHIA_DRIVERAPI_FUNC(eDBregister_vpnclientaddr)(eurephiaCTX *ctx, eurephiaSESSION *session, + const char * macaddr, + const char * vpnip4addr, const char *vpnip6addr); + +/** * Registers when a user logged out. It will then add some information about the session to the * eurephia lastlog. * |