rc_auth_proxy3
Builds an authentication request for proxying.
Usage
#include <radcli/>
int rc_auth_proxy(
rc_handle *rh,
VALUE_PAIR *send,
VALUE_PAIR **received,
char *msg
);
Overview
Builds an authentication request with the value_pairs send and submits it to a server. Works for a proxy; does not add IP address, and does does not rely on config file.
Parameters
rh-
a handle to parsed configuration.
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.