This function returns am_status_t with one of the following values:
Description
If the cookie was successfully decoded and copied into buf.
If the cookie or buffer was NULL or len was smaller than the size of the decoded value.
Other error occurred while decoding cookie.