radius_vhost_ctx → radius_vhost_ctx_st

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
This commit is contained in:
Dimitri Papadopoulos
2026-06-16 22:53:38 +02:00
parent ea253803e7
commit 32713999ed
3 changed files with 14 additions and 14 deletions
+8 -8
View File
@@ -46,12 +46,12 @@
static void acct_radius_vhost_init(void **_vctx, void *pool, void *additional)
{
radius_cfg_st *config = additional;
struct radius_vhost_ctx *vctx;
struct radius_vhost_ctx_st *vctx;
if (config == NULL)
goto fail;
vctx = talloc_zero(pool, struct radius_vhost_ctx);
vctx = talloc_zero(pool, struct radius_vhost_ctx_st);
if (vctx == NULL)
goto fail;
@@ -82,7 +82,7 @@ fail:
static void acct_radius_vhost_deinit(void *_vctx)
{
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
if (vctx->rh != NULL)
rc_destroy(vctx->rh);
@@ -110,8 +110,8 @@ static void append_stats(rc_handle *rh, VALUE_PAIR **send, stats_st *stats)
rc_avpair_add(rh, send, PW_ACCT_OUTPUT_GIGAWORDS, &uout, -1, 0);
}
static void append_acct_standard(struct radius_vhost_ctx *vctx, rc_handle *rh,
const common_acct_info_st *ai,
static void append_acct_standard(struct radius_vhost_ctx_st *vctx,
rc_handle *rh, const common_acct_info_st *ai,
VALUE_PAIR **send)
{
uint32_t i;
@@ -182,7 +182,7 @@ static void radius_acct_session_stats(void *_vctx, unsigned int auth_method,
int ret;
uint32_t status_type;
VALUE_PAIR *send = NULL, *recvd = NULL;
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
status_type = PW_STATUS_ALIVE;
@@ -218,7 +218,7 @@ static int radius_acct_open_session(void *_vctx, unsigned int auth_method,
int ret;
uint32_t status_type;
VALUE_PAIR *send = NULL, *recvd = NULL;
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
status_type = PW_STATUS_START;
@@ -268,7 +268,7 @@ static void radius_acct_close_session(void *_vctx, unsigned int auth_method,
int ret;
uint32_t status_type;
VALUE_PAIR *send = NULL, *recvd = NULL;
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
status_type = PW_STATUS_STOP;
+4 -4
View File
@@ -77,12 +77,12 @@
static void radius_vhost_init(void **_vctx, void *pool, void *additional)
{
radius_cfg_st *config = additional;
struct radius_vhost_ctx *vctx;
struct radius_vhost_ctx_st *vctx;
if (config == NULL)
goto fail;
vctx = talloc_zero(pool, struct radius_vhost_ctx);
vctx = talloc_zero(pool, struct radius_vhost_ctx_st);
if (vctx == NULL)
goto fail;
@@ -121,7 +121,7 @@ fail:
static void radius_vhost_deinit(void *_vctx)
{
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
if (vctx->rh != NULL)
rc_destroy(vctx->rh);
@@ -132,7 +132,7 @@ static int radius_auth_init(void **ctx, void *pool, void *_vctx,
{
struct radius_ctx_st *pctx;
char *default_realm;
struct radius_vhost_ctx *vctx = _vctx;
struct radius_vhost_ctx_st *vctx = _vctx;
if (info->username == NULL || info->username[0] == 0) {
oc_syslog(LOG_NOTICE, "radius-auth: no username present");
+2 -2
View File
@@ -32,7 +32,7 @@
#include <radcli/radcli.h>
#endif
struct radius_vhost_ctx {
struct radius_vhost_ctx_st {
rc_handle *rh;
char nas_identifier[64];
char group_separator[2]; /* separator used in OU= Class attributes */
@@ -72,7 +72,7 @@ struct radius_ctx_st {
unsigned int retries;
unsigned int id;
struct radius_vhost_ctx *vctx;
struct radius_vhost_ctx_st *vctx;
char *state;
unsigned int state_len;
unsigned int passwd_counter;