The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Functions | Variables
rlm_sql_null.c File Reference
#include <freeradius-devel/server/base.h>
#include "rlm_sql.h"
+ Include dependency graph for rlm_sql_null.c:

Go to the source code of this file.

Functions

static int sql_affected_rows (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static size_t sql_error (UNUSED TALLOC_CTX *ctx, UNUSED sql_log_entry_t out[], UNUSED size_t outlen, UNUSED fr_sql_query_t *query_ctx)
 Stub function for retrieving errors, should not be called. More...
 
static unlang_action_t sql_fetch_row (rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
 
static sql_rcode_t sql_finish_query (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static sql_rcode_t sql_free_result (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static int sql_num_rows (UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
 
static unlang_action_t sql_query (rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
 
static sql_rcode_t sql_socket_init (rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t const *config, UNUSED fr_time_delta_t timeout)
 

Variables

static const void * fake = "fake"
 
rlm_sql_driver_t rlm_sql_null
 

Function Documentation

◆ sql_affected_rows()

static int sql_affected_rows ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 78 of file rlm_sql_null.c.

◆ sql_error()

static size_t sql_error ( UNUSED TALLOC_CTX *  ctx,
UNUSED sql_log_entry_t  out[],
UNUSED size_t  outlen,
UNUSED fr_sql_query_t query_ctx 
)
static

Stub function for retrieving errors, should not be called.

Definition at line 67 of file rlm_sql_null.c.

◆ sql_fetch_row()

static unlang_action_t sql_fetch_row ( rlm_rcode_t p_result,
UNUSED int *  priority,
UNUSED request_t request,
void *  uctx 
)
static

Definition at line 51 of file rlm_sql_null.c.

◆ sql_finish_query()

static sql_rcode_t sql_finish_query ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 73 of file rlm_sql_null.c.

◆ sql_free_result()

static sql_rcode_t sql_free_result ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 59 of file rlm_sql_null.c.

◆ sql_num_rows()

static int sql_num_rows ( UNUSED fr_sql_query_t query_ctx,
UNUSED rlm_sql_config_t const *  config 
)
static

Definition at line 46 of file rlm_sql_null.c.

◆ sql_query()

static unlang_action_t sql_query ( rlm_rcode_t p_result,
UNUSED int *  priority,
UNUSED request_t request,
void *  uctx 
)
static

Definition at line 39 of file rlm_sql_null.c.

◆ sql_socket_init()

static sql_rcode_t sql_socket_init ( rlm_sql_handle_t handle,
UNUSED rlm_sql_config_t const *  config,
UNUSED fr_time_delta_t  timeout 
)
static

Definition at line 32 of file rlm_sql_null.c.

Variable Documentation

◆ fake

const void* fake = "fake"
static

Definition at line 30 of file rlm_sql_null.c.

◆ rlm_sql_null

rlm_sql_driver_t rlm_sql_null
Initial value:
= {
.common = {
.name = "sql_null"
},
.sql_socket_init = sql_socket_init,
.sql_query = sql_query,
.sql_select_query = sql_query,
.sql_num_rows = sql_num_rows,
.sql_fetch_row = sql_fetch_row,
.sql_free_result = sql_free_result,
.sql_error = sql_error,
.sql_finish_query = sql_finish_query,
.sql_finish_select_query = sql_finish_query,
.sql_affected_rows = sql_affected_rows
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:63
static sql_rcode_t sql_socket_init(rlm_sql_handle_t *handle, UNUSED rlm_sql_config_t const *config, UNUSED fr_time_delta_t timeout)
Definition: rlm_sql_null.c:32
static unlang_action_t sql_fetch_row(rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
Definition: rlm_sql_null.c:51
static int sql_affected_rows(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
Definition: rlm_sql_null.c:78
static int sql_num_rows(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
Definition: rlm_sql_null.c:46
static sql_rcode_t sql_finish_query(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
Definition: rlm_sql_null.c:73
static size_t sql_error(UNUSED TALLOC_CTX *ctx, UNUSED sql_log_entry_t out[], UNUSED size_t outlen, UNUSED fr_sql_query_t *query_ctx)
Stub function for retrieving errors, should not be called.
Definition: rlm_sql_null.c:67
static sql_rcode_t sql_free_result(UNUSED fr_sql_query_t *query_ctx, UNUSED rlm_sql_config_t const *config)
Definition: rlm_sql_null.c:59
static unlang_action_t sql_query(rlm_rcode_t *p_result, UNUSED int *priority, UNUSED request_t *request, void *uctx)
Definition: rlm_sql_null.c:39

Definition at line 85 of file rlm_sql_null.c.