HP-UX AAA Server A.07.01 Administrator's Guide
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.
attrid The attribute ID to be set or modified.
attrlen The length of the attribute (in bytes) to be set or modified.
attrval The attribute value to be set or modified.
tag
The tag for the tagged attribute. This value is 0 if the attribute is untagged.
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_vend_avp()
int sdk_set_vend_avp(sdk_avp_t *avp,uint32_t vendid, uint32_t
attrid, uint32_t attrlen, void *attrval, u_char tag)
Usage
Sets or modifies an A-V pair (including vendor specific A-V pairs).
Input
432 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK