HP-UX AAA Server A.07.01 Administrator's Guide
vendor-specific attributes, the attribute length (attrlen) is the vendor
length.
attrvalue
The attribute value to be matched. If the attrvalue value is NULL,
the attribute length and value are not considered in the match. For a
vendor-specific attribute, the attribute value (attrvalue) is the
sub-attribute value.
position
Pointer to an A-V pair already found in 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.
int sdk_del_avp()
int sdk_del_avp ( sdk_authreq_t *authreq, u_char qtype, sdk_avp_t
*avp)
Usage
Deletes the A-V pair from authreq’s list of qtype.
NOTE: Even if the A-V pair is deleted, the memory is not freed. You must free the
memory for the deleted A-V pair.
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
avp The pointer to the A-V pair to be deleted.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds
• SDK_INVALID_ARG if the arguments are invalid
int sdk_insert_avp()
int sdk_insert_avp (sdk_authreq_t *authreq, u_char qtype,
sdk_avp_t *loc_avp, u_char position, sdk_avp_t *new_avp)
Usage
APIs in the HP-UX AAA Server SDK 435