#include <freeradius-devel/util/conf.h>
#include <freeradius-devel/util/syserror.h>
#include <freeradius-devel/util/atexit.h>
#include <freeradius-devel/util/pair_legacy.h>
#include <freeradius-devel/util/time.h>
#include <freeradius-devel/util/event.h>
#include <freeradius-devel/server/packet.h>
#include <freeradius-devel/radius/list.h>
#include <freeradius-devel/radius/radius.h>
#include <freeradius-devel/util/chap.h>
#include <freeradius-devel/radius/client.h>
#include <ctype.h>
#include <assert.h>
#include "smbdes.h"
#include "mschap.h"
#include "radclient.h"
Go to the source code of this file.
|
static int | _loop_status (UNUSED fr_time_t now, fr_time_delta_t wake, UNUSED void *ctx) |
|
static int | _rc_request_free (rc_request_t *request) |
|
static bool | already_hex (fr_pair_t *vp) |
|
static void | client_connect (fr_event_list_t *el, int fd, UNUSED int flags, void *uctx) |
|
static NEVER_RETURNS void | client_error (UNUSED fr_event_list_t *el, UNUSED int fd, UNUSED int flags, int fd_errno, UNUSED void *uctx) |
|
static void | client_read (fr_event_list_t *el, int fd, UNUSED int flags, void *uctx) |
|
static void | client_write (fr_event_list_t *el, int fd, UNUSED int flags, void *uctx) |
|
static int | getport (char const *name) |
|
int | main (int argc, char **argv) |
|
static int | mschapv1_encode (fr_packet_t *packet, fr_pair_list_t *list, char const *password) |
|
static fr_radius_packet_code_t | radclient_get_code (uint16_t port) |
|
static void | radclient_get_port (fr_radius_packet_code_t type, uint16_t *port) |
|
static int | radclient_init (TALLOC_CTX *ctx, rc_file_pair_t *files) |
|
static int | radclient_sane (rc_request_t *request) |
|
static int | send_one_packet (fr_bio_packet_t *client, rc_request_t *request) |
|
static NEVER_RETURNS void | usage (void) |
|
◆ openssl3_free
◆ openssl3_init
◆ pair_update_request
#define pair_update_request |
( |
|
_attr, |
|
|
|
_da |
|
) |
| |
Value: do { \
if (!_attr) { \
fr_assert(_attr != NULL); \
fr_pair_append(&request->request_pairs, _attr); \
} \
} while (0)
fr_pair_t * fr_pair_find_by_da(fr_pair_list_t const *list, fr_pair_t const *prev, fr_dict_attr_t const *da)
Find the first pair with a matching da.
fr_pair_t * fr_pair_afrom_da(TALLOC_CTX *ctx, fr_dict_attr_t const *da)
Dynamically allocate a new attribute and assign a fr_dict_attr_t.
Definition at line 60 of file radclient-ng.c.
◆ request_t
◆ _loop_status()
◆ _rc_request_free()
◆ already_hex()
◆ client_connect()
◆ client_error()
◆ client_read()
◆ client_write()
◆ getport()
static int getport |
( |
char const * |
name | ) |
|
|
static |
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ mschapv1_encode()
◆ radclient_get_code()
◆ radclient_get_port()
◆ radclient_init()
static int radclient_init |
( |
TALLOC_CTX * |
ctx, |
|
|
rc_file_pair_t * |
files |
|
) |
| |
|
static |
◆ radclient_sane()
◆ send_one_packet()
◆ usage()
◆ attr_chap_challenge
◆ attr_chap_password
◆ attr_cleartext_password
◆ attr_ms_chap_challenge
◆ attr_ms_chap_password
◆ attr_ms_chap_response
◆ attr_packet_type
◆ attr_radclient_test_name
◆ attr_request_authenticator
◆ attr_user_name
◆ attr_user_password
◆ autofree
TALLOC_CTX* autofree = NULL |
|
static |
◆ bio
◆ client_bio
◆ client_config
◆ client_info
◆ current
◆ dict_freeradius
◆ dict_radius
◆ do_output
◆ fd_config
◆ fd_info
◆ forced_id
◆ ipproto
int ipproto = IPPROTO_UDP |
|
static |
◆ packet_code
◆ parallel
◆ pause_write
Initial value:= {
{ 0 }
}
#define FR_EVENT_SUSPEND(_s, _f)
Temporarily remove the filter for a func from kevent.
Callbacks for the FR_EVENT_FILTER_IO filter.
Definition at line 811 of file radclient-ng.c.
◆ paused
◆ print_filename
◆ radclient_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
static fr_dict_t const * dict_radius
Definition at line 107 of file radclient-ng.c.
◆ radclient_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_OCTETS
Raw octets.
static fr_dict_attr_t const * attr_packet_type
static fr_dict_attr_t const * attr_request_authenticator
static fr_dict_attr_t const * attr_user_password
static fr_dict_attr_t const * attr_chap_password
static fr_dict_attr_t const * attr_ms_chap_response
static fr_dict_attr_t const * attr_ms_chap_challenge
static fr_dict_attr_t const * attr_chap_challenge
static fr_dict_attr_t const * attr_cleartext_password
static fr_dict_attr_t const * attr_radclient_test_name
static fr_dict_attr_t const * attr_user_name
static fr_dict_attr_t const * attr_ms_chap_password
Definition at line 129 of file radclient-ng.c.
◆ radclient_version
◆ rc_request_list
◆ resend_count
◆ resume_write
Initial value:= {
{ 0 }
}
#define FR_EVENT_RESUME(_s, _f)
Re-add the filter for a func from kevent.
Definition at line 816 of file radclient-ng.c.
◆ secret
◆ stats