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

infotype The information type. Table D-4 lists the valid values of the infotype
parameter.
Table D-4 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_TYPE
client 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
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_decrypt_passwd()
int sdk_decrypt_passwd(sdk_authreq_t *authreq, char *enpasswd,
uint32_t enpwlen, char *clpasswd, uint32_t *clpwlen)
Usage
Decrypts the password
Input
authreq A pointer to an authentication request.
enpasswd A pointer to the encrypted password string.
APIs in the HP-UX AAA Server SDK 443