Integrate FreeRADIUS with RESTfull APIs.
More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/token.h>
#include <freeradius-devel/rad_assert.h>
#include <ctype.h>
#include "rest.h"
Go to the source code of this file.
|
static rlm_rcode_t | CC_HINT (nonnull) |
|
static ssize_t | jsonquote_xlat (char **out, size_t outlen, UNUSED void const *mod_inst, UNUSED void const *xlat_inst, UNUSED REQUEST *request, char const *fmt) |
|
static int | mod_bootstrap (CONF_SECTION *conf, void *instance) |
|
static int | mod_detach (void *instance) |
|
static int | mod_instantiate (CONF_SECTION *conf, void *instance) |
|
static int | parse_sub_section (CONF_SECTION *parent, rlm_rest_section_t *config, rlm_components_t comp) |
|
static ssize_t | rest_xlat (char **out, UNUSED size_t outlen, void const *mod_inst, UNUSED void const *xlat_inst, REQUEST *request, char const *fmt) |
|
static void | rlm_rest_cleanup (rlm_rest_t const *instance, rlm_rest_section_t *section, void *handle) |
|
static int | rlm_rest_perform (rlm_rest_t *instance, rlm_rest_section_t *section, void *handle, REQUEST *request, char const *username, char const *password) |
|
Integrate FreeRADIUS with RESTfull APIs.
- Id:
- 4ef697e1a0dd9c762cd91474e35ec8cf07888f09
- Copyright
- 2012-2014 Arran Cudbard-Bell arran.nosp@m..cud.nosp@m.bardb.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg
Definition in file rlm_rest.c.
static ssize_t jsonquote_xlat |
( |
char ** |
out, |
|
|
size_t |
outlen, |
|
|
UNUSED void const * |
mod_inst, |
|
|
UNUSED void const * |
xlat_inst, |
|
|
UNUSED REQUEST * |
request, |
|
|
char const * |
fmt |
|
) |
| |
|
static |
static int mod_bootstrap |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static int mod_detach |
( |
void * |
instance | ) |
|
|
static |
static int mod_instantiate |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static ssize_t rest_xlat |
( |
char ** |
out, |
|
|
UNUSED size_t |
outlen, |
|
|
void const * |
mod_inst, |
|
|
UNUSED void const * |
xlat_inst, |
|
|
REQUEST * |
request, |
|
|
char const * |
fmt |
|
) |
| |
|
static |
Initial value:= {
}
Time value (struct timeval), only for config items.
#define CONF_PARSER_TERMINATOR
#define FR_CONF_DEPRECATED(_n, _t, _p, _f)
#define FR_CONF_OFFSET(_n, _t, _s, _f)
String of printable characters.
Definition at line 81 of file rlm_rest.c.
Initial value:= {
.name = "rest",
.methods = {
},
}
static rlm_rcode_t mod_accounting(void *instance, REQUEST *request)
Write accounting data to Couchbase documents.
static rlm_rcode_t mod_post_auth(void *instance, REQUEST *request) CC_HINT(nonnull)
7 methods index for postauth section.
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
#define RLM_TYPE_THREAD_SAFE
Module is threadsafe.
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
struct rlm_rest_t rlm_rest_t
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
3 methods index for accounting section.
static int mod_instantiate(CONF_SECTION *conf, void *instance)
0 methods index for authenticate section.
static const CONF_PARSER module_config[]
static int mod_detach(void *instance)
1 methods index for authorize section.
Definition at line 892 of file rlm_rest.c.
Initial value:= {
}
Time value (struct timeval), only for config items.
#define CONF_PARSER_TERMINATOR
#define PW_TYPE_SUBSECTION
#define PW_TYPE_XLAT
string will be dynamically expanded.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
String of printable characters.
#define FR_CONF_POINTER(_n, _t, _p)
static CONF_PARSER tls_config[]
Definition at line 58 of file rlm_rest.c.
Initial value:= {
}
#define PW_TYPE_FILE_INPUT
File matching value must exist, and must be readable.
#define CONF_PARSER_TERMINATOR
#define PW_TYPE_SECRET
Only print value if debug level >= 3.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
String of printable characters.
Definition at line 37 of file rlm_rest.c.