HP-UX AAA Server A.08.02 Administrator's Guide
attrlen The attribute length to be matched. If the attrlen value is 0, the attribute length
and value are not considered in the match. For 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
Inserts an A-V pair into the A-V pair list of type qtype in authreq. Table 117 lists the different
insertions that this API performs, based on the values of the loc_avp A-V pair.
Table 117 Actions Performed as a Result of the loc_avp A-V Pair
ActionParameter Value
The new_avp A-V pair is inserted before loc_avp.The loc_avp A-V pair in the list is valid and the value of
the position parameter is INSERT_BEFORE.
The new_avp A-V pair is inserted after loc_avp.The loc_avp A-V pair in the list is valid and the value of
the position parameter is INSERT_AFTER.
APIs in the HP-UX AAA Server SDK 433