1rc_buildreq(3)               Radius client library              rc_buildreq(3)
2
3
4

NAME

6       rc_buildreq -
7

SYNOPSIS

9       #include <radcli/radcli.h>
10
11       void rc_buildreq(
12           rc_handle const  *rh,
13           SEND_DATA        *data,
14           int               code,
15           char             *server,
16           unsigned short    port,
17           char             *secret,
18           int               timeout,
19           int               retries
20       );
21

DESCRIPTION

23       Build a skeleton RADIUS request using information from the config file
24

PARAMETERS

26       rh     a handle to parsed configuration.
27
28
29       data   a pointer to a SEND_DATA structure.
30
31
32       code   one of standard RADIUS codes (e.g., PW_ACCESS_REQUEST).
33
34
35       server the name of the server.
36
37
38       port   the server's port number.
39
40
41       secret the secret used by the server.
42
43
44       timeout
45              the timeout in seconds of a message.
46
47
48       retries
49              the number of retries.
50
51

STRUCTURES

53
54              struct send_data {
55                uint8_t      code;          // RADIUS packet code.
56                uint8_t      seq_nbr;       // Packet sequence number.
57                char        *server;        // Name/addrress of RADIUS server.
58                int          svc_port;      // RADIUS protocol destination port.
59                char        *secret;        // Shared secret of RADIUS server.
60                int          timeout;       // Session timeout in seconds.
61                int          retries;
62                VALUE_PAIR  *send_pairs;    // More a/v pairs to send.
63                VALUE_PAIR  *receive_pairs; // Where to place received a/v pairs.
64              };
65

SEE ALSO

67       radcli.h(3), rc_aaa(3), rc_aaa_ctx(3), rc_aaa_ctx_free(3),
68       rc_aaa_ctx_get_secret(3), rc_aaa_ctx_get_vector(3),
69       rc_aaa_ctx_server(3), rc_acct(3), rc_acct_proxy(3), rc_add_config(3),
70       rc_apply_config(3), rc_auth(3), rc_auth_proxy(3), rc_avpair_add(3),
71       rc_avpair_assign(3), rc_avpair_copy(3), rc_avpair_free(3),
72       rc_avpair_gen(3), rc_avpair_get(3), rc_avpair_get_attr(3),
73       rc_avpair_get_in6(3), rc_avpair_get_raw(3), rc_avpair_get_uint32(3),
74       rc_avpair_insert(3), rc_avpair_log(3), rc_avpair_new(3),
75       rc_avpair_next(3), rc_avpair_parse(3), rc_avpair_remove(3),
76       rc_avpair_tostr(3), rc_buildreq(3), rc_check(3), rc_check_tls(3),
77       rc_conf_int(3), rc_conf_srv(3), rc_conf_str(3), rc_config_free(3),
78       rc_config_init(3), rc_destroy(3), rc_dict_findattr(3),
79       rc_dict_findval(3), rc_dict_findvend(3), rc_dict_free(3),
80       rc_dict_getattr(3), rc_dict_getval(3), rc_dict_getvend(3),
81       rc_find_server_addr(3), rc_get_socket_type(3), rc_get_srcaddr(3),
82       rc_getport(3), rc_mksid(3), rc_new(3), rc_openlog(3),
83       rc_own_hostname(3), rc_read_config(3), rc_read_dictionary(3),
84       rc_read_dictionary_from_buffer(3), rc_send_server(3), rc_setdebug(3),
85       rc_test_config(3), rc_tls_fd(3)
86
87
88
89radcli                            2018-09-14                    rc_buildreq(3)
Impressum