rc_auth3
Builds an authentication request for port id nas_port with the value_pairs send and submits it to a server.
Usage
#include <radcli/>
int rc_auth(
rc_handle *rh,
uint32_t nas_port,
VALUE_PAIR *send,
VALUE_PAIR **received,
char *msg
);
Overview
Parameters
rh-
a handle to parsed configuration.
nas_port-
the physical NAS port number to use (may be zero).
send-
a VALUE_PAIR array of values (e.g., PW_USER_NAME).
received-
an allocated array of received values.
msg-
must be an array of PW_MAX_MSG_SIZE or NULL; will contain the concatenation of any PW_REPLY_MESSAGE received.
Return value
received value_pairs in received, messages from the server in msg (if non-NULL), and OK_RC (0) on success,CHALLENGE_RC (3) on Access-Challenge received, negative on failure as return value.
Releases
4 releases since Debian 11 (Bullseye); the text changed 1 time.