Code common to clients and to servers.
More...
#include <freeradius-devel/eap/base.h>
#include <freeradius-devel/radius/defs.h>
#include <freeradius-devel/server/state.h>
#include <freeradius-devel/server/virtual_servers.h>
#include <freeradius-devel/server/pair.h>
#include <freeradius-devel/server/auth.h>
#include <freeradius-devel/unlang/call.h>
#include <freeradius-devel/unlang/interpret.h>
#include <freeradius-devel/unlang/function.h>
#include "types.h"
#include "attrs.h"
Go to the source code of this file.
|
void | eap_add_reply (request_t *request, fr_dict_attr_t const *da, uint8_t const *value, int len) |
|
void | eap_base_free (void) |
| De-init the lib eap base library.
|
|
int | eap_base_init (void) |
| Initialise the lib eap base library.
|
|
static bool | eap_is_valid (TALLOC_CTX *ctx, eap_packet_raw_t **eap_packet_p) |
| Basic EAP packet verifications & validations.
|
|
eap_packet_raw_t * | eap_packet_from_vp (TALLOC_CTX *ctx, fr_pair_list_t *vps) |
|
void | eap_packet_to_vp (TALLOC_CTX *ctx, fr_pair_list_t *list, eap_packet_raw_t const *eap) |
|
unlang_action_t | eap_virtual_server (request_t *request, eap_session_t *eap_session, CONF_SECTION *server_cs) |
| Run a subrequest through a virtual server.
|
|
static unlang_action_t | eap_virtual_server_resume (UNUSED rlm_rcode_t *p_result, UNUSED int *priority, request_t *request, void *uctx) |
| Handle the result of running a subrequest through a virtual server.
|
|
Code common to clients and to servers.
- Id
- 55db89cc494d1ee0b3de0f628947dcd2e23021f2
- Copyright
- 2000-2003,2006 The FreeRADIUS server project
-
2001 hereUare Communications, Inc. (raghu.nosp@m.d@he.nosp@m.reuar.nosp@m.e.co.nosp@m.m)
-
2003 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
-
2003 Michael Richardson (mcr@s.nosp@m.ande.nosp@m.lman..nosp@m.otta.nosp@m.wa.on.nosp@m..ca)
Definition in file base.c.
◆ LOG_PREFIX
◆ eap_add_reply()
◆ eap_base_free()
void eap_base_free |
( |
void |
| ) |
|
De-init the lib eap base library.
Definition at line 478 of file base.c.
◆ eap_base_init()
int eap_base_init |
( |
void |
| ) |
|
Initialise the lib eap base library.
Definition at line 455 of file base.c.
◆ eap_is_valid()
Basic EAP packet verifications & validations.
- Parameters
-
[in] | ctx | talloc ctx for the eap packet. |
[in] | eap_packet_p | to validate. |
- Returns
- true the packet is valid.
- false the packet is invalid.
Definition at line 169 of file base.c.
◆ eap_packet_from_vp()
◆ eap_packet_to_vp()
◆ eap_virtual_server()
Run a subrequest through a virtual server.
If eap_session_t has a child_state, inject that as an attribute in the request.
- Parameters
-
[in] | request | the current (real) request. |
[in] | eap_session | representing the outer eap method. |
[in] | server_cs | The virtual server to send the request to. |
- Returns
- UNLANG_ACTION_PUSHED_CHILD on success
- UNLANG_ACTION_FAIL on error
Definition at line 427 of file base.c.
◆ eap_virtual_server_resume()
Handle the result of running a subrequest through a virtual server.
Storing the value of the State attribute in readiness for the next round.
Definition at line 403 of file base.c.
◆ attr_chbind_response_code
◆ attr_eap_channel_binding_message
◆ attr_eap_emsk
◆ attr_eap_identity
◆ attr_eap_message
◆ attr_eap_msk
◆ attr_eap_session_id
◆ attr_eap_type
◆ attr_framed_mtu
◆ attr_freeradius_proxied_to
◆ attr_message_authenticator
◆ attr_ms_mppe_recv_key
◆ attr_ms_mppe_send_key
◆ attr_packet_type
◆ attr_state
◆ attr_tls_max_version
◆ attr_tls_min_version
◆ attr_user_name
◆ dict_freeradius
◆ dict_radius
◆ dict_tls
◆ eap_base_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
fr_dict_t const * dict_tls
fr_dict_t const * dict_radius
Definition at line 82 of file base.c.
◆ eap_base_dict_attr
Initial value:= {
{ NULL }
}
fr_dict_attr_t const * attr_packet_type
fr_dict_attr_t const * attr_eap_session_id
fr_dict_attr_t const * attr_state
fr_dict_attr_t const * attr_eap_identity
fr_dict_attr_t const * attr_freeradius_proxied_to
fr_dict_attr_t const * attr_chbind_response_code
fr_dict_attr_t const * attr_eap_message
fr_dict_attr_t const * attr_eap_type
fr_dict_attr_t const * attr_eap_msk
fr_dict_attr_t const * attr_eap_channel_binding_message
fr_dict_attr_t const * attr_tls_min_version
fr_dict_attr_t const * attr_eap_emsk
fr_dict_attr_t const * attr_ms_mppe_send_key
fr_dict_attr_t const * attr_tls_max_version
fr_dict_attr_t const * attr_user_name
fr_dict_attr_t const * attr_framed_mtu
fr_dict_attr_t const * attr_ms_mppe_recv_key
fr_dict_attr_t const * attr_message_authenticator
@ FR_TYPE_FLOAT32
Single precision floating point.
@ FR_TYPE_IPV4_ADDR
32 Bit IPv4 Address.
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_OCTETS
Raw octets.
Definition at line 109 of file base.c.