HP-UX AAA Server A.08.02.10 Administrator's Guide HP-UX 11i v3 (T1428-90093, November 2013)

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.
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
sdk_authreq_t * sdk_authreq_allocate
sdk_authreq_t * sdk_authreq_allocate()
APIs in the HP-UX AAA Server SDK 441