Authentication for yubikey OTP tokens.
More...
Go to the source code of this file.
Authentication for yubikey OTP tokens.
- Id:
- bf91acbd24b86fb09604e41809fedfe6a11daccd
- Author
- Arran Cudbard-Bell a.cud.nosp@m.bard.nosp@m.b@net.nosp@m.work.nosp@m.radiu.nosp@m.s.co.nosp@m.m
- Copyright
- 2013 The FreeRADIUS server project
-
2013 Network RADIUS info@.nosp@m.netw.nosp@m.orkra.nosp@m.dius.nosp@m..com
Definition in file rlm_yubikey.c.
#define is_modhex |
( |
|
x | ) |
(memchr(modhextab, tolower(x), 16)) |
static int CC_HINT |
( |
nonnull |
| ) |
|
|
static |
static int mod_bootstrap |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static int mod_instantiate |
( |
CONF_SECTION * |
conf, |
|
|
void * |
instance |
|
) |
| |
|
static |
static ssize_t modhex2hex |
( |
char const * |
modhex, |
|
|
uint8_t * |
hex, |
|
|
size_t |
len |
|
) |
| |
|
static |
Convert yubikey modhex to normal hex.
The same buffer may be passed as modhex and hex to convert the modhex in place.
Modhex and hex must be the same size.
- Parameters
-
[in] | modhex | data. |
[in] | len | of input and output buffers. |
[out] | hex | where to write the standard hexits. |
- Returns
- The number of bytes written to the output buffer.
- -1 on failure.
Definition at line 77 of file rlm_yubikey.c.
static ssize_t modhex_to_hex_xlat |
( |
char ** |
out, |
|
|
size_t |
outlen, |
|
|
UNUSED void const * |
mod_inst, |
|
|
UNUSED void const * |
xlat_inst, |
|
|
REQUEST * |
request, |
|
|
char const * |
fmt |
|
) |
| |
|
static |
Convert Yubikey modhex to standard hex.
Example: "%{modhextohex:vvrbuctetdhc}" == "ffc1e0d3d260"
Definition at line 109 of file rlm_yubikey.c.
char const hextab[] = "0123456789abcdef" |
|
static |
char const modhextab[] = "cbdefghijklnrtuv" |
|
static |
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition at line 48 of file rlm_yubikey.c.
Initial value:= {
.name = "yubikey",
.methods = {
},
}
static int mod_instantiate(CONF_SECTION *conf, void *instance)
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 const CONF_PARSER module_config[]
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
0 methods index for authenticate section.
struct rlm_yubikey_t rlm_yubikey_t
1 methods index for authorize section.
Definition at line 425 of file rlm_yubikey.c.