HP-UX AAA Server A.07.01 Administrator's Guide
enpwlen Length of encrypted password.
clpasswd A pointer to the buffer where the clear text password is to be stored.
clpwlen A pointer to an integer, where the size of the clear text password is to be
stored.
Output
clpasswd A pointer to the clear text password.
clpwlen A pointer to the length of the clear text password.
Return
Returns one of the following values:
• SDK_SUCCESS if the operation succeeds
• SDK_INVALID_ARG if the arguments are invalid
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
444 Header Files, Data Structures, and APIs in the HP-UX AAA Server SDK