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

Table 117 Actions Performed as a Result of the loc_avp A-V Pair (continued)
ActionParameter Value
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.
infotype The information type interested. Table 118 lists the various information types.
Table 118 Information Types
DescriptionInformation Type
Code: The packet type, one of Access-Request,
Access-Accept as defined in RFC 2865. The code
has a type of unsigned short.
AUTHREQ_CODE
Forward ID: A locally generated sequence number
for a request to be forwarded. The forward ID has
a type of unsigned short.
AUTHREQ_FWD_ID
Request ID: A unique number used by the HP-UX
AAA Server to identify an authentication request.
AUTHREQ_REQ_ID
This ID is different from the identifier in a RADIUS
packet. The request ID has a type of unsigned
64–bit integer.
The authentication vector in the RADIUS packet.
Its 16 byte and used for password hiding
algorithm.
AUTHREQ_AUTHENTICATOR
434 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK