Sun Java System Access Manager 7.1 C API Reference

Returns

This function returns one of the following values of the am_status_t enumeration (defined in the <am_types.h> header file):

AM_SUCCESS

If the cookie was successfully encoded and stored.

AM_INVALID_ARGUMENT

If the cookie or buffer is NULL..

AM_BUFFER_TOO_SMALL

If the defined size is smaller than the encoded value.

AM_FAILURE

If any other error occurred.