Files
ocserv/src/auth/radius.h
Nikos Mavrogiannopoulos 6c6481de40 radius: send user agent information as Connect-Info
That allows the radius server to store information on particular
client. Resolves #26
2016-01-16 23:01:10 +01:00

59 lines
1.5 KiB
C

/*
* Copyright (C) 2014 Red Hat, Inc.
*
* Author: Nikos Mavrogiannopoulos
*
* This file is part of ocserv.
*
* The GnuTLS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
#ifndef RADIUS_H
#define RADIUS_H
#include <sec-mod-auth.h>
struct radius_ctx_st {
char username[MAX_USERNAME_SIZE*2];
char groupname[MAX_GROUPNAME_SIZE];
char user_agent[MAX_AGENT_NAME];
char remote_ip[MAX_IP_STR];
char our_ip[MAX_IP_STR];
unsigned interim_interval_secs;
unsigned session_timeout_secs;
/* variables for configuration */
char ipv4[MAX_IP_STR];
char ipv4_mask[MAX_IP_STR];
char ipv4_dns1[MAX_IP_STR];
char ipv4_dns2[MAX_IP_STR];
char ipv6[MAX_IP_STR];
char ipv6_net[MAX_IP_STR];
uint16_t ipv6_subnet_prefix;
char ipv6_dns1[MAX_IP_STR];
char ipv6_dns2[MAX_IP_STR];
char **routes;
unsigned routes_size;
const char *pass_msg;
unsigned retries;
unsigned id;
};
extern const struct auth_mod_st radius_auth_funcs;
#endif