HP-UX AAA Server A.08.02 Administrator's Guide

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
authreq A pointer to an authreq
qtype The type of list to be accessed. It can be one of the following types:
AUTHREQ_REQUEST_QUEUE
AUTHREQ_REPLY QUEUE
AUTHREQ_CHECK_QUEUE
AUTHREQ_DENY_QUEUE
attrid The attribute to be discovered
attrlen The attribute length to be matched. If the length is 0, the attribute length and value
are not considered in the match.
attrvalue The attribute value to be matched. If the value is NULL, the attribute length and
value are not considered in the match.
position A pointer to an A-V pair that is already found from the list. If this value is NULL,
then the search starts from the beginning of the list.
tag The tag value for a tagged attribute. This value is 0 for an untagged attribute, or
if the tag is not a search parameter.
Return
Returns a pointer to the A-V pair found. If no A-V pair is found, it returns a NULL value.
sdk_avp_t *sdk_find_vend_avp()
sdk_avp_t *sdk_find_vend_avp(sdk_authreq_t *authreq, u_char qtype,
uint32_t vendid, uint32_t attrid, uint32_t attrlen, void *attrvalue,
void *position, u_char tag)
Usage
Discovers the next A-V pair with the specified vendor ID, attribute ID, attribute length, attribute
value, and the tag for a tagged attribute, after position in the authreq’s A-V pair list of qtype.
If position points to one A-V pair in the list, this API starts searching from the next A-V pair after
position. If the value of position is NULL, this API starts the search from the beginning of the
list.
Input
authreq A pointer to an Authreq
qtype The type of list to be accessed. It can be one of the following types:
AUTHREQ_REQUEST_QUEUE
AUTHREQ_REPLY QUEUE
AUTHREQ_CHECK_QUEUE
AUTHREQ_DENY_QUEUE
vendid Vendor ID of the attribute to be discovered. For a standard RADIUS attribute, use
VC_RADIUS that is 0.
attrid Attribute to be discovered. For a vendor-specific attribute, the attribute ID is the
vendor type.
432 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK