rc_avpair_new3
Make a new attribute-value pair with given parameters.
Usage
#include <radcli/>
VALUE_PAIR * rc_avpair_new(
rc_handle const *rh,
uint32_t attrid,
void const *pval,
int len,
uint32_t vendorspec
);
Overview
See rc_avpair_assign() for the format of the data.
Parameters
|
a handle to parsed configuration. |
|---|---|
|
The attribute of the pair to add (e.g., PW_USER_NAME). |
|
the value (e.g., the actual username). |
|
the length of pval, or -1 if to calculate (in case of strings). |
|
The vendor ID in case of a vendor specific value - 0 otherwise. |
Return value
pointer to generated a/v pair when successful, NULL when failure.
Releases
4 releases since Debian 11 (Bullseye); the text changed 1 time.