The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/util/debug.h>
#include <sys/stat.h>
#include <libpq-fe.h>
#include <postgres_ext.h>
#include "config.h"
#include "rlm_sql.h"
Go to the source code of this file.
Data Structures | |
struct | rlm_sql_postgres_conn_t |
struct | rlm_sql_postgresql_t |
PostgreSQL configuration. More... | |
Macros | |
#define | LOG_PREFIX "sql - postgresql" |
#define | NAMEDATALEN 64 |
Variables | |
static conf_parser_t | driver_config [] |
rlm_sql_driver_t | rlm_sql_postgresql |
static sql_state_entry_t | sql_state_table [] |
These are PostgreSQL specific error codes which are not covered in SQL 2011. More... | |
struct rlm_sql_postgres_conn_t |
Definition at line 68 of file rlm_sql_postgresql.c.
Data Fields | ||
---|---|---|
int | affected_rows | |
int | cur_row | |
PGconn * | db | |
int | num_fields | |
PGresult * | result | |
char ** | row |
struct rlm_sql_postgresql_t |
PostgreSQL configuration.
Definition at line 62 of file rlm_sql_postgresql.c.
Data Fields | ||
---|---|---|
char const * | db_string | Text based configuration string. |
bool | send_application_name | Whether we send the application name to PostgreSQL. |
fr_trie_t * | states | sql state trie. |
#define LOG_PREFIX "sql - postgresql" |
Definition at line 42 of file rlm_sql_postgresql.c.
#define NAMEDATALEN 64 |
Definition at line 56 of file rlm_sql_postgresql.c.
|
static |
|
static |
Return the number of affected rows of the result as an int instead of the string that postgresql provides.
Definition at line 137 of file rlm_sql_postgresql.c.
|
static |
Free the row of the current result that's stored in the conn struct.
Definition at line 145 of file rlm_sql_postgresql.c.
|
static |
|
static |
Definition at line 657 of file rlm_sql_postgresql.c.
|
static |
Definition at line 518 of file rlm_sql_postgresql.c.
|
static |
|
static |
Retrieves any errors associated with the connection handle.
ctx | to allocate temporary error buffers in. |
out | Array of sql_log_entrys to fill. |
outlen | Length of out array. |
handle | rlm_sql connection handle. |
config | rlm_sql config. |
Definition at line 493 of file rlm_sql_postgresql.c.
|
static |
Definition at line 525 of file rlm_sql_postgresql.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 458 of file rlm_sql_postgresql.c.
|
static |
Definition at line 264 of file rlm_sql_postgresql.c.
|
static |
|
static |
|
static |
Definition at line 77 of file rlm_sql_postgresql.c.
rlm_sql_driver_t rlm_sql_postgresql |
Definition at line 671 of file rlm_sql_postgresql.c.
|
static |
These are PostgreSQL specific error codes which are not covered in SQL 2011.
Definition at line 85 of file rlm_sql_postgresql.c.