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

int sdk_encrypt_passwd()
int sdk_encrypt_passwd (sdk_authreq_t *authreq, char *clpasswd,
uint32_t clpwlen, char *enpasswd, uint32_t *enpwlen)
Usage
Encrypts the password
Input
authreq A pointer to an authentication request.
clpasswd A pointer to the password string that is in clear text.
clpwlen The length of the clear text password.
enpasswd A pointer to the buffer where the encrypted password is to be stored.
enpwlen A pointer to an integer, where the encrypted password is to be stored.
Output
enpasswd A pointer to the encrypted password string.
enpwlen A pointer to the length of the encrypted password string.
Return
Returns one of the following values:
SDK_SUCCESS if the operation succeeds
SDK_INVALID_ARG if the arguments are invalid
sdk_authreq_t * sdk_authreq_allocate
sdk_authreq_t * sdk_authreq_allocate()
Usage
Allocates memory for a request.
Return
Returns a pointer to the allocated authreq structure or NULL if there is not enough
memory.
void sdk_authreq_free
void sdk_authreq_free(sdk_authreq_t * authreq)
Usage
Frees the memory allocated for a request.
Input
authreq
A pointer to an authreq.
int sdk_enqueue_authreq
int sdk_enqueue_authreq( sdk_authreq_t * authreq)
Usage
APIs in the HP-UX AAA Server SDK 585