HP-UX AAA Server A.08.00.01 Administrator's Guide
Inserts an A-V pair into the A-V pair list of type qtype in authreq. Table D-1 lists
the different insertions that this API performs, based on the values of the loc_avp
A-V pair.
Table D-1 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.
The new_avp A-V pair is prepended to the list.The value of the loc_avp A-V pair is null and the
value of the position parameter is INSERT_BEFORE.
The new_avp A-V pair is appended to the list.The value of the loc_avp A-V pair is null and the
value of the position parameter is INSERT_AFTER.
Input
authreq A pointer to an authreq
qtype The type of list to insert the A-V pair into. It can be one of the following
types:
• AUTHREQ_REQUEST_QUEUE
• AUTHREQ_REPLY QUEUE
• AUTHREQ_CHECK_QUEUE
• AUTHREQ_DENY_QUEUE
loc_avp
A pointer to one A-V pair that is already in the list or NULL.
position An integer to specify the insertion location. The insertion location can
be INSERT_BEFORE or INSERT_AFTER.
new_avp A pointer to the A-V pair that must be inserted.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds
• SDK_INVALID_ARG if the arguments are invalid
int sdk_get_authreq_info()
int sdk_get_authreq_info (sdk_authreq_t *authreq, u_char
infotype, uint32_t *len, void **value)
Usage
Obtains information from an authreq.
Input
authreq A pointer to an authreq.
576 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK