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

infotype The information type. It can be set to one of the following:
AUTHREQ_TTL — the time to live of an authentication request. The time to live
has a type of unsigned character.
AUTHREQ_CODE the message type or (code) of a request. The message type
(code) has a type of unsigned short.
AUTHREQ_TARGET_HOST — the target host to which the request must be sent.
It has a type of string.
len The length of the value to be set in bytes.
value A pointer pointing to the value to be set.
Return
Returns one of the following values:
SDK_SUCCESS if the operation succeeds.
SDK_INVALID_ARG if the arguments are invalid.
SDK_FAILURE if the operation fails.
int sdk_get_client_info()
int sdk_get_client_info(char *client, u_char infotype, uint32_t *len,
void **value)
Usage
Obtains the configuration information from a client entry with matching host_name or IP address
Input
client String representation of client IPv4 or IPv6 address, or the fully qualified domain
name of the client.
infotype The information type. Table 120 lists the valid values of the infotype parameter.
Table 120 Possible Values of the infotype Parameter
DescriptionInformation Type Value
The shared secret between the client and the
HP-UX AAA Server. The shared secret is a
character string.
CLIENT_SHARED_SECRET
The UDP port to which authentication or
authorization messages must be sent. The port has
a type of unsigned short.
CLIENT_AUTHEN_PORT
The UDP port to which accounting messages must
be sent. The port has a type of unsigned short.
CLIENT_ACCT_PORT
Client types, such as CE_DAS, CE_NAS, and
CE_PROXY. For more information on these client
CLIENT_TYPE
types, see the sdk.h header file. The client type
field has a type of uint32_t.
len The address of a variable to store the length of the value interested.
value The address of a pointer intended to point to the content of the value interested.
Output
len The input variable that stores the length of the value (in bytes).
value The input pointer that points to the content of the value. You must copy the contents that
are of value. The memory for the value must not be freed once you copy the contents.
Return
APIs in the HP-UX AAA Server SDK 439