HP-UX AAA Server A.08.01 administrator's guide (T1428-90072, May 2010)

Table Of Contents
Input
avp A pointer to an A-V pair to be set or modified.
vendid The vendor ID of the attribute to be set or modified. For a standard RADIUS
attribute, use VC_RADIUS which is 0
attrid The attribute ID to be set or modified. For a vendor-specific attribute, the
attribute ID is the vendor type or sub-attribute.
attrlen The length of the attribute (in bytes) to be set or modified. For a
vendor-specific attribute, the length is the vendor length.
attrval The attribute value to be set or modified. For a vendor-specific attribute,
the attribute value is the sub-attribute value.
tag
The tag for a tagged attribute; 0 for untagged attribute.
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
Authreq APIs
This section discusses the authreq APIs.
NOTE: The following constants are defined for different queue types that are used
in authreq:
AUTHREQ_REQUEST_QUEUE for the inbound request attributes queue
AUTHREQ_REPLY QUEUE for the reply attributes queue
AUTHREQ_CHECK_QUEUE for the check items queue
AUTHREQ_DENY_QUEUE for the deny items queue
The check items and deny items are A-V pairs configured in the user profile for the
corresponding user request.
sdk_avp_t *sdk_find_avp()
sdk_avp_t *sdk_find_avp (sdk_authreq_t *authreq, u_char qtype,
uint32_t attrid, uint32_t attrlen, void *attrvalue, void
*position, u_char tag)
Usage
Discovers the next standard RADIUS A-V pair with the specified attribute ID, attribute
length, attribute value, and the tag for a tagged attribute, after the specified position
in the authreq’s A-V pair list of qtype. For example, if position points to one A-V
pair in the list, this API starts searching from the next A-V pair after position. If
position is NULL, this API searches from the beginning of the list.
Input
582 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK