HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)

void sdk_avp_free()
void sdk_avp_free (sdk_avp_t *avp)
Usage
Frees the memory and any allocated string storage associated with an A-V pair. The string storage
must not be shared with other objects.
Input
avp A pointer to the A-V pair that must be freed.
int sdk_get_avp_info()
int sdk_get_avp_info (sdk_avp_t *avp, uint32_t *vendid, uint32_t *attrid,
uint32_t *attrlen, void ** attrval, u_char *tag)
Usage
Obtains information from an A-V pair.
Input
avp A pointer to an A-V pair.
vendid The address of an unsigned integer variable to store the vendor ID of the A-V pair.
This value is NULL if the vendor ID is not applicable.
attrid The address of an unsigned integer to store the attribute ID of the A-V pair.
attrlen The address of an unsigned integer to store the length of the A-V pair attribute.
attrval The address of a pointer intended to point to the attribute value.
tag The address of an unsigned character variable to store the tag for the tagged attribute.
This value is NULL if the tag is not applicable.
Output
vendid The input variable that stores the vendor ID of the A-V pair.
attrid The input variable that stores the attribute ID of the A-V pair. For vendor specific
attributes, the attribute ID is the vendor type or sub-attribute.
attrlen The input variable that stores the length of the attribute (in bytes) of the A-V pair. For
vendor-specific attributes, this value is the vendor length.
attrval The input pointer that points to the attribute value of the A-V pair. For vendor-specific
attributes, the attribute value is the sub-attribute value. You must copy the contents of
the attribute value. Ensure that you do not free the memory for the attribute value after
copying the contents of the attribute value.
tag The input variable that stores the value of the tag for tagged attributes. If the attribute
is untagged, the value is 0.
Return
This API returns one of the following values:
SDK_SUCCESS if the operation succeeds
SDK_INVALID_ARG if the arguments are invalid
SDK_FAILURE if the operation fails
int sdk_set_avp()
int sdk_set_avp (sdk_avp_t *avp, uint32_t attrid, uint32_t attrlen,
void *attrval, u_char tag)
Usage
Sets or modifies a standard RADIUS A-V pair.
Input
avp A pointer to an A-V pair to be set or modified.
APIs in the HP-UX AAA Server SDK 431